function get_brake_pattern_offset(limit_speed)
{
	local brake_pattern_table = 
	{
		[0]=	0	,
		[1]=	4.647580015	,
		[2]=	6.57267069	,
		[3]=	8.049844719	,
		[4]=	9.295160031	,
		[5]=	10.39230485	,
		[6]=	11.38419958	,
		[7]=	12.29634092	,
		[8]=	13.14534138	,
		[9]=	13.94274005	,
		[10]=	14.69693846	,
		[11]=	15.41427909	,
		[12]=	16.09968944	,
		[13]=	16.75708805	,
		[14]=	17.3896521	,
		[15]=	18	,
		[16]=	18.59032006	,
		[17]=	19.16246331	,
		[18]=	19.71801207	,
		[19]=	20.25833162	,
		[20]=	20.78460969	,
		[21]=	21.29788722	,
		[22]=	21.79908255	,
		[23]=	22.28901075	,
		[24]=	22.76839915	,
		[25]=	23.23790008	,
		[26]=	23.69810119	,
		[27]=	24.14953416	,
		[28]=	24.59268184	,
		[29]=	25.02798434	,
		[30]=	25.45584412	,
		[31]=	25.87663038	,
		[32]=	26.29068276	,
		[33]=	26.69831455	,
		[34]=	27.0998155	,
		[35]=	27.49545417	,
		[36]=	27.88548009	,
		[37]=	28.27012557	,
		[38]=	28.64960733	,
		[39]=	29.02412789	,
		[40]=	29.39387691	,
		[41]=	29.75903224	,
		[42]=	30.11976096	,
		[43]=	30.47622024	,
		[44]=	30.82855819	,
		[45]=	31.17691454	,
		[46]=	31.52142129	,
		[47]=	31.86220331	,
		[48]=	32.19937888	,
		[49]=	32.53306011	,
		[50]=	32.86335345	,
		[51]=	33.19036005	,
		[52]=	33.51417611	,
		[53]=	33.83489323	,
		[54]=	34.15259873	,
		[55]=	34.46737588	,
		[56]=	34.77930419	,
		[57]=	35.08845964	,
		[58]=	35.39491489	,
		[59]=	35.69873947	,
		[60]=	36	,
		[61]=	36.29876031	,
		[62]=	36.59508164	,
		[63]=	36.88902276	,
		[64]=	37.18064012	,
		[65]=	37.46998799	,
		[66]=	37.75711853	,
		[67]=	38.04208196	,
		[68]=	38.32492661	,
		[69]=	38.60569906	,
		[70]=	38.88444419	,
		[71]=	39.16120529	,
		[72]=	39.43602414	,
		[73]=	39.70894106	,
		[74]=	39.979995	,
		[75]=	40.24922359	,
		[76]=	40.51666324	,
		[77]=	40.78234912	,
		[78]=	41.0463153	,
		[79]=	41.30859475	,
		[80]=	41.56921938	,
		[81]=	41.82822014	,
		[82]=	42.085627	,
		[83]=	42.34146903	,
		[84]=	42.59577444	,
		[85]=	42.84857057	,
		[86]=	43.09988399	,
		[87]=	43.34974048	,
		[88]=	43.5981651	,
		[89]=	43.84518218	,
		[90]=	44.09081537	,
		[91]=	44.33508768	,
		[92]=	44.57802149	,
		[93]=	44.81963855	,
		[94]=	45.05996005	,
		[95]=	45.29900661	,
		[96]=	45.53679831	,
		[97]=	45.77335469	,
		[98]=	46.00869483	,
		[99]=	46.24283728	,
		[100]=	46.47580015	,
		[101]=	46.70760109	,
		[102]=	46.93825732	,
		[103]=	47.16778562	,
		[104]=	47.39620238	,
		[105]=	47.6235236	,
		[106]=	47.84976489	,
		[107]=	48.0749415	,
		[108]=	48.29906831	,
		[109]=	48.52215989	,
		[110]=	48.74423043	,
		[111]=	48.96529383	,
		[112]=	49.18536368	,
		[113]=	49.40445324	,
		[114]=	49.62257551	,
		[115]=	49.83974318	,
		[116]=	50.05596868	,
		[117]=	50.27126416	,
		[118]=	50.48564152	,
		[119]=	50.69911242	,
		[120]=	50.91168825	,
		[121]=	51.12338017	,
		[122]=	51.33419913	,
		[123]=	51.54415583	,
		[124]=	51.75326077	,
		[125]=	51.96152423	,
		[126]=	52.16895629	,
		[127]=	52.37556682	,
		[128]=	52.58136552	,
		[129]=	52.78636188	,
		[130]=	52.9905652	,
		[131]=	53.19398462	,
		[132]=	53.39662911	,
		[133]=	53.59850744	,
		[134]=	53.79962825	,
		[135]=	54	,
		[136]=	54.199631	,
		[137]=	54.39852939	,
		[138]=	54.5967032	,
		[139]=	54.79416027	,
		[140]=	54.99090834	,
		[141]=	55.18695498	,
		[142]=	55.38230764	,
		[143]=	55.57697365	,
		[144]=	55.77096019	,
		[145]=	55.96427432	,
		[146]=	56.15692299	,
		[147]=	56.34891303	,
		[148]=	56.54025115	,
		[149]=	56.73094394	,
		[150]=	56.92099788	,
		[151]=	57.11041936	,
		[152]=	57.29921465	,
		[153]=	57.48738992	,
		[154]=	57.67495124	,
		[155]=	57.86190457	,
		[156]=	58.04825579	,
		[157]=	58.23401068	,
		[158]=	58.41917493	,
		[159]=	58.60375415	,
		[160]=	58.78775383	,
		[161]=	58.9711794	,
		[162]=	59.15403621	,
		[163]=	59.33632951	,
		[164]=	59.51806448	,
		[165]=	59.69924623	,
		[166]=	59.87987976	,
		[167]=	60.05997003	,
		[168]=	60.23952191	,
		[169]=	60.4185402	,
		[170]=	60.59702963	,
		[171]=	60.77499486	,
		[172]=	60.95244048	,
		[173]=	61.12937101	,
		[174]=	61.30579092	,
		[175]=	61.4817046	,
		[176]=	61.65711638	,
		[177]=	61.83203053	,
		[178]=	62.00645128	,
		[179]=	62.18038276	,
		[180]=	62.35382907	,
		[181]=	62.52679426	,
		[182]=	62.69928229	,
		[183]=	62.87129711	,
		[184]=	63.04284258	,
		[185]=	63.21392252	,
		[186]=	63.3845407	,
		[187]=	63.55470085	,
		[188]=	63.72440663	,
		[189]=	63.89366166	,
		[190]=	64.06246951	,
		[191]=	64.23083372	,
		[192]=	64.39875775	,
		[193]=	64.56624505	,
		[194]=	64.733299	,
		[195]=	64.89992296	,
		[196]=	65.06612022	,
		[197]=	65.23189404	,
		[198]=	65.39724765	,
		[199]=	65.56218422	,
		[200]=	65.7267069	,
		[201]=	65.89081878	,
		[202]=	66.05452293	,
		[203]=	66.21782237	,
		[204]=	66.38072009	,
		[205]=	66.54321904	,
		[206]=	66.70532213	,
		[207]=	66.86703224	,
		[208]=	67.02835221	,
		[209]=	67.18928486	,
		[210]=	67.34983296	,
		[211]=	67.50999926	,
		[212]=	67.66978646	,
		[213]=	67.82919725	,
		[214]=	67.98823428	,
		[215]=	68.14690015	,
		[216]=	68.30519746	,
		[217]=	68.46312876	,
		[218]=	68.62069659	,
		[219]=	68.77790343	,
		[220]=	68.93475176	,
		[221]=	69.09124402	,
		[222]=	69.24738262	,
		[223]=	69.40316996	,
		[224]=	69.55860838	,
		[225]=	69.71370023	,
		[226]=	69.86844781	,
		[227]=	70.02285341	,
		[228]=	70.17691928	,
		[229]=	70.33064766	,
		[230]=	70.48404075	,
		[231]=	70.63710073	,
		[232]=	70.78982978	,
		[233]=	70.94223002	,
		[234]=	71.09430357	,
		[235]=	71.24605252	,
		[236]=	71.39747895	,
		[237]=	71.54858489	,
		[238]=	71.69937238	,
		[239]=	71.84984342	,
		[240]=	72	,
		[241]=	72.14984407	,
		[242]=	72.29937759	,
		[243]=	72.44860247	,
		[244]=	72.59752062	,
		[245]=	72.74613392	,
		[246]=	72.89444423	,
		[247]=	73.04245341	,
		[248]=	73.19016327	,
		[249]=	73.33757563	,
		[250]=	73.48469228	,
		[251]=	73.63151499	,
		[252]=	73.77804551	,
		[253]=	73.92428559	,
		[254]=	74.07023694	,
		[255]=	74.21590126	,
		[256]=	74.36128025	,
		[257]=	74.50637557	,
		[258]=	74.65118887	,
		[259]=	74.7957218	,
		[260]=	74.93997598	,
		[261]=	75.08395301	,
		[262]=	75.22765449	,
		[263]=	75.37108199	,
		[264]=	75.51423707	,
		[265]=	75.65712128	,
		[266]=	75.79973615	,
		[267]=	75.9420832	,
		[268]=	76.08416392	,
		[269]=	76.22597982	,
		[270]=	76.36753237	,
		[271]=	76.50882302	,
		[272]=	76.64985323	,
		[273]=	76.79062443	,
		[274]=	76.93113804	,
		[275]=	77.07139547	,
		[276]=	77.21139812	,
		[277]=	77.35114737	,
		[278]=	77.4906446	,
		[279]=	77.62989115	,
		[280]=	77.76888838	,
		[281]=	77.90763762	,
		[282]=	78.0461402	,
		[283]=	78.18439742	,
		[284]=	78.32241059	,
		[285]=	78.46018098	,
		[286]=	78.59770989	,
		[287]=	78.73499857	,
		[288]=	78.87204828	,
		[289]=	79.00886026	,
		[290]=	79.14543575	,
		[291]=	79.28177596	,
		[292]=	79.41788212	,
		[293]=	79.55375541	,
		[294]=	79.68939704	,
		[295]=	79.82480817	,
		[296]=	79.95998999	,
		[297]=	80.09494366	,
		[298]=	80.22967032	,
		[299]=	80.36417112	,
		[300]=	80.49844719	,
		[301]=	80.63249965	,
		[302]=	80.76632962	,
		[303]=	80.8999382	,
		[304]=	81.03332648	,
		[305]=	81.16649555	,
		[306]=	81.29944649	,
		[307]=	81.43218037	,
		[308]=	81.56469825	,
		[309]=	81.69700117	,
		[310]=	81.82909018	,
		[311]=	81.96096632	,
		[312]=	82.09263061	,
		[313]=	82.22408406	,
		[314]=	82.3553277	,
		[315]=	82.48636251	,
		[316]=	82.61718949	,
		[317]=	82.74780964	,
		[318]=	82.87822392	,
		[319]=	83.00843331	,
		[320]=	83.13843876	,
		[321]=	83.26824124	,
		[322]=	83.3978417	,
		[323]=	83.52724107	,
		[324]=	83.65644028	,
		[325]=	83.78544026	,
		[326]=	83.91424194	,
		[327]=	84.04284622	,
		[328]=	84.171254	,
		[329]=	84.29946619	,
		[330]=	84.42748368	,
		[331]=	84.55530734	,
		[332]=	84.68293807	,
		[333]=	84.81037672	,
		[334]=	84.93762417	,
		[335]=	85.06468127	,
		[336]=	85.19154888	,
		[337]=	85.31822783	,
		[338]=	85.44471897	,
		[339]=	85.57102313	,
		[340]=	85.69714114	,
		[341]=	85.82307382	,
		[342]=	85.94882198	,
		[343]=	86.07438643	,
		[344]=	86.19976798	,
		[345]=	86.32496742	,
		[346]=	86.44998554	,
		[347]=	86.57482313	,
		[348]=	86.69948097	,
		[349]=	86.82395983	,
		[350]=	86.94826048	,
		[351]=	87.07238368	,
		[352]=	87.1963302	,
		[353]=	87.32010078	,
		[354]=	87.44369617	,
		[355]=	87.56711712	,
		[356]=	87.69036435	,
		[357]=	87.81343861	,
		[358]=	87.93634061	,
		[359]=	88.05907108	,
		[360]=	88.18163074	,
		[361]=	88.30402029	,
		[362]=	88.42624045	,
		[363]=	88.54829191	,
		[364]=	88.67017537	,
		[365]=	88.79189152	,
		[366]=	88.91344105	,
		[367]=	89.03482465	,
		[368]=	89.15604298	,
		[369]=	89.27709673	,
		[370]=	89.39798655	,
		[371]=	89.51871313	,
		[372]=	89.63927711	,
		[373]=	89.75967914	,
		[374]=	89.87991989	,
		[375]=	90	,
		[376]=	90.11992011	,
		[377]=	90.23968085	,
		[378]=	90.35928287	,
		[379]=	90.47872678	,
		[380]=	90.59801322	,
		[381]=	90.71714281	,
		[382]=	90.83611617	,
		[383]=	90.9549339	,
		[384]=	91.07359661	,
		[385]=	91.19210492	,
		[386]=	91.31045942	,
		[387]=	91.42866071	,
		[388]=	91.54670939	,
		[389]=	91.66460604	,
		[390]=	91.78235124	,
		[391]=	91.89994559	,
		[392]=	92.01738966	,
		[393]=	92.13468402	,
		[394]=	92.25182925	,
		[395]=	92.36882591	,
		[396]=	92.48567457	,
		[397]=	92.60237578	,
		[398]=	92.71893011	,
		[399]=	92.8353381	,
		[400]=	92.95160031	,
		[401]=	93.06771728	,
		[402]=	93.18368956	,
		[403]=	93.29951768	,
		[404]=	93.41520219	,
		[405]=	93.53074361	,
		[406]=	93.64614247	,
		[407]=	93.76139931	,
		[408]=	93.87651463	,
		[409]=	93.99148898	,
		[410]=	94.10632285	,
		[411]=	94.22101676	,
		[412]=	94.33557123	,
		[413]=	94.44998677	,
		[414]=	94.56426386	,
		[415]=	94.67840303	,
		[416]=	94.79240476	,
		[417]=	94.90626955	,
		[418]=	95.0199979	,
		[419]=	95.13359028	,
		[420]=	95.2470472	,
		[421]=	95.36036913	,
		[422]=	95.47355655	,
		[423]=	95.58660994	,
		[424]=	95.69952978	,
		[425]=	95.81231654	,
		[426]=	95.92497068	,
		[427]=	96.03749268	,
		[428]=	96.149883	,
		[429]=	96.26214209	,
		[430]=	96.37427043	,
		[431]=	96.48626845	,
		[432]=	96.59813663	,
		[433]=	96.7098754	,
		[434]=	96.82148522	,
		[435]=	96.93296653	,
		[436]=	97.04431977	,
		[437]=	97.15554539	,
		[438]=	97.26664382	,
		[439]=	97.3776155	,
		[440]=	97.48846086	,
		[441]=	97.59918032	,
		[442]=	97.70977433	,
		[443]=	97.8202433	,
		[444]=	97.93058766	,
		[445]=	98.04080783	,
		[446]=	98.15090422	,
		[447]=	98.26087726	,
		[448]=	98.37072735	,
		[449]=	98.48045491	,
		[450]=	98.59006035	,
		[451]=	98.69954407	,
		[452]=	98.80890648	,
		[453]=	98.91814798	,
		[454]=	99.02726897	,
		[455]=	99.13626985	,
		[456]=	99.24515102	,
		[457]=	99.35391286	,
		[458]=	99.46255577	,
		[459]=	99.57108014	,
		[460]=	99.67948636	,
		[461]=	99.7877748	,
		[462]=	99.89594586	,
		[463]=	100.0039999	,
		[464]=	100.1119374	,
		[465]=	100.2197585	,
		[466]=	100.3274638	,
		[467]=	100.4350536	,
		[468]=	100.5425283	,
		[469]=	100.6498882	,
		[470]=	100.7571337	,
		[471]=	100.8642652	,
		[472]=	100.971283	,
		[473]=	101.0781876	,
		[474]=	101.1849791	,
		[475]=	101.2916581	,
		[476]=	101.3982248	,
		[477]=	101.5046797	,
		[478]=	101.611023	,
		[479]=	101.7172552	,
		[480]=	101.8233765	,
		[481]=	101.9293873	,
		[482]=	102.035288	,
		[483]=	102.1410789	,
		[484]=	102.2467603	,
		[485]=	102.3523327	,
		[486]=	102.4577962	,
		[487]=	102.5631513	,
		[488]=	102.6683983	,
		[489]=	102.7735375	,
		[490]=	102.8785692	,
		[491]=	102.9834938	,
		[492]=	103.0883117	,
		[493]=	103.193023	,
		[494]=	103.2976282	,
		[495]=	103.4021276	,
		[496]=	103.5065215	,
		[497]=	103.6108102	,
		[498]=	103.7149941	,
		[499]=	103.8190734	,
		[500]=	103.9230485	,
		[501]=	104.0269196	,
		[502]=	104.1306871	,
		[503]=	104.2343513	,
		[504]=	104.3379126	,
		[505]=	104.4413711	,
		[506]=	104.5447273	,
		[507]=	104.6479813	,
		[508]=	104.7511336	,
		[509]=	104.8541845	,
		[510]=	104.9571341	,
		[511]=	105.0599829	,
		[512]=	105.162731	,
		[513]=	105.2653789	,
		[514]=	105.3679268	,
		[515]=	105.470375	,
		[516]=	105.5727238	,
		[517]=	105.6749734	,
		[518]=	105.7771242	,
		[519]=	105.8791764	,
		[520]=	105.9811304	,
		[521]=	106.0829864	,
		[522]=	106.1847447	,
		[523]=	106.2864055	,
		[524]=	106.3879692	,
		[525]=	106.4894361	,
		[526]=	106.5908064	,
		[527]=	106.6920803	,
		[528]=	106.7932582	,
		[529]=	106.8943404	,
		[530]=	106.995327	,
		[531]=	107.0962184	,
		[532]=	107.1970149	,
		[533]=	107.2977167	,
		[534]=	107.398324	,
		[535]=	107.4988372	,
		[536]=	107.5992565	,
		[537]=	107.6995822	,
		[538]=	107.7998145	,
		[539]=	107.8999537	,
		[540]=	108	,
		[541]=	108.0999537	,
		[542]=	108.1998152	,
		[543]=	108.2995845	,
		[544]=	108.399262	,
		[545]=	108.4988479	,
		[546]=	108.5983425	,
		[547]=	108.6977461	,
		[548]=	108.7970588	,
		[549]=	108.8962809	,
		[550]=	108.9954127	,
		[551]=	109.0944545	,
		[552]=	109.1934064	,
		[553]=	109.2922687	,
		[554]=	109.3910417	,
		[555]=	109.4897255	,
		[556]=	109.5883205	,
		[557]=	109.6868269	,
		[558]=	109.7852449	,
		[559]=	109.8835748	,
		[560]=	109.9818167	,
		[561]=	110.0799709	,
		[562]=	110.1780377	,
		[563]=	110.2760173	,
		[564]=	110.37391	,
		[565]=	110.4717158	,
		[566]=	110.5694352	,
		[567]=	110.6670683	,
		[568]=	110.7646153	,
		[569]=	110.8620765	,
		[570]=	110.9594521	,
		[571]=	111.0567423	,
		[572]=	111.1539473	,
		[573]=	111.2510674	,
		[574]=	111.3481028	,
		[575]=	111.4450537	,
		[576]=	111.5419204	,
		[577]=	111.638703	,
		[578]=	111.7354017	,
		[579]=	111.8320169	,
		[580]=	111.9285486	,
		[581]=	112.0249972	,
		[582]=	112.1213628	,
		[583]=	112.2176457	,
		[584]=	112.313846	,
		[585]=	112.409964	,
		[586]=	112.5059998	,
		[587]=	112.6019538	,
		[588]=	112.6978261	,
		[589]=	112.7936168	,
		[590]=	112.8893263	,
		[591]=	112.9849548	,
		[592]=	113.0805023	,
		[593]=	113.1759692	,
		[594]=	113.2713556	,
		[595]=	113.3666618	,
		[596]=	113.4618879	,
		[597]=	113.5570341	,
		[598]=	113.6521007	,
		[599]=	113.7470879	,
		[600]=	113.8419958	,
		[601]=	113.9368246	,
		[602]=	114.0315746	,
		[603]=	114.1262459	,
		[604]=	114.2208387	,
		[605]=	114.3153533	,
		[606]=	114.4097898	,
		[607]=	114.5041484	,
		[608]=	114.5984293	,
		[609]=	114.6926327	,
		[610]=	114.7867588	,
		[611]=	114.8808078	,
		[612]=	114.9747798	,
		[613]=	115.0686751	,
		[614]=	115.1624939	,
		[615]=	115.2562363	,
		[616]=	115.3499025	,
		[617]=	115.4434927	,
		[618]=	115.5370071	,
		[619]=	115.6304458	,
		[620]=	115.7238091	,
		[621]=	115.8170972	,
		[622]=	115.9103102	,
		[623]=	116.0034482	,
		[624]=	116.0965116	,
		[625]=	116.1895004	,
		[626]=	116.2824148	,
		[627]=	116.3752551	,
		[628]=	116.4680214	,
		[629]=	116.5607138	,
		[630]=	116.6533326	,
		[631]=	116.7458779	,
		[632]=	116.8383499	,
		[633]=	116.9307487	,
		[634]=	117.0230746	,
		[635]=	117.1153278	,
		[636]=	117.2075083	,
		[637]=	117.2996164	,
		[638]=	117.3916522	,
		[639]=	117.4836159	,
		[640]=	117.5755077	,
		[641]=	117.6673277	,
		[642]=	117.7590761	,
		[643]=	117.8507531	,
		[644]=	117.9423588	,
		[645]=	118.0338934	,
		[646]=	118.1253571	,
		[647]=	118.2167501	,
		[648]=	118.3080724	,
		[649]=	118.3993243	,
		[650]=	118.4905059	,
		[651]=	118.5816175	,
		[652]=	118.672659	,
		[653]=	118.7636308	,
		[654]=	118.8545329	,
		[655]=	118.9453656	,
		[656]=	119.036129	,
		[657]=	119.1268232	,
		[658]=	119.2174484	,
		[659]=	119.3080048	,
		[660]=	119.3984925	,
		[661]=	119.4889116	,
		[662]=	119.5792624	,
		[663]=	119.669545	,
		[664]=	119.7597595	,
		[665]=	119.8499061	,
		[666]=	119.939985	,
		[667]=	120.0299963	,
		[668]=	120.1199401	,
		[669]=	120.2098166	,
		[670]=	120.2996259	,
		[671]=	120.3893683	,
		[672]=	120.4790438	,
		[673]=	120.5686526	,
		[674]=	120.6581949	,
		[675]=	120.7476708	,
		[676]=	120.8370804	,
		[677]=	120.9264239	,
		[678]=	121.0157015	,
		[679]=	121.1049132	,
		[680]=	121.1940593	,
		[681]=	121.2831398	,
		[682]=	121.372155	,
		[683]=	121.4611049	,
		[684]=	121.5499897	,
		[685]=	121.6388096	,
		[686]=	121.7275647	,
		[687]=	121.8162551	,
		[688]=	121.904881	,
		[689]=	121.9934424	,
		[690]=	122.0819397	,
		[691]=	122.1703728	,
		[692]=	122.258742	,
		[693]=	122.3470474	,
		[694]=	122.435289	,
		[695]=	122.5234671	,
		[696]=	122.6115818	,
		[697]=	122.6996333	,
		[698]=	122.7876215	,
		[699]=	122.8755468	,
		[700]=	122.9634092	,
		[701]=	123.0512089	,
		[702]=	123.1389459	,
		[703]=	123.2266205	,
		[704]=	123.3142328	,
		[705]=	123.4017828	,
		[706]=	123.4892708	,
		[707]=	123.5766968	,
		[708]=	123.6640611	,
		[709]=	123.7513636	,
		[710]=	123.8386046	,
		[711]=	123.9257842	,
		[712]=	124.0129026	,
		[713]=	124.0999597	,
		[714]=	124.1869558	,
		[715]=	124.2738911	,
		[716]=	124.3607655	,
		[717]=	124.4475793	,
		[718]=	124.5343326	,
		[719]=	124.6210255	,
		[720]=	124.7076581	,
		[721]=	124.7942306	,
		[722]=	124.8807431	,
		[723]=	124.9671957	,
		[724]=	125.0535885	,
		[725]=	125.1399217	,
		[726]=	125.2261953	,
		[727]=	125.3124096	,
		[728]=	125.3985646	,
		[729]=	125.4846604	,
		[730]=	125.5706972	,
		[731]=	125.6566751	,
		[732]=	125.7425942	,
		[733]=	125.8284547	,
		[734]=	125.9142565	,
		[735]=	126	,
		[736]=	126.0856852	,
		[737]=	126.1713121	,
		[738]=	126.256881	,
		[739]=	126.3423919	,
		[740]=	126.427845	,
		[741]=	126.5132404	,
		[742]=	126.5985782	,
		[743]=	126.6838585	,
		[744]=	126.7690814	,
		[745]=	126.8542471	,
		[746]=	126.9393556	,
		[747]=	127.0244071	,
		[748]=	127.1094017	,
		[749]=	127.1943395	,
		[750]=	127.2792206	,
		[751]=	127.3640452	,
		[752]=	127.4488133	,
		[753]=	127.533525	,
		[754]=	127.6181805	,
		[755]=	127.7027799	,
		[756]=	127.7873233	,
		[757]=	127.8718108	,
		[758]=	127.9562425	,
		[759]=	128.0406186	,
		[760]=	128.124939	,
		[761]=	128.209204	,
		[762]=	128.2934137	,
		[763]=	128.3775681	,
		[764]=	128.4616674	,
		[765]=	128.5457117	,
		[766]=	128.6297011	,
		[767]=	128.7136356	,
		[768]=	128.7975155	,
		[769]=	128.8813408	,
		[770]=	128.9651116	,
		[771]=	129.048828	,
		[772]=	129.1324901	,
		[773]=	129.2160981	,
		[774]=	129.299652	,
		[775]=	129.3831519	,
		[776]=	129.466598	,
		[777]=	129.5499904	,
		[778]=	129.633329	,
		[779]=	129.7166142	,
		[780]=	129.7998459	,
		[781]=	129.8830243	,
		[782]=	129.9661494	,
		[783]=	130.0492215	,
		[784]=	130.1322404	,
		[785]=	130.2152065	,
		[786]=	130.2981197	,
		[787]=	130.3809802	,
		[788]=	130.4637881	,
		[789]=	130.5465434	,
		[790]=	130.6292463	,
		[791]=	130.7118969	,
		[792]=	130.7944953	,
		[793]=	130.8770415	,
		[794]=	130.9595357	,
		[795]=	131.041978	,
		[796]=	131.1243684	,
		[797]=	131.2067071	,
		[798]=	131.2889942	,
		[799]=	131.3712297	,
		[800]=	131.4534138	,
		[801]=	131.5355465	,
		[802]=	131.617628	,
		[803]=	131.6996583	,
		[804]=	131.7816376	,
		[805]=	131.8635659	,
		[806]=	131.9454433	,
		[807]=	132.0272699	,
		[808]=	132.1090459	,
		[809]=	132.1907712	,
		[810]=	132.2724461	,
		[811]=	132.3540706	,
		[812]=	132.4356447	,
		[813]=	132.5171687	,
		[814]=	132.5986425	,
		[815]=	132.6800663	,
		[816]=	132.7614402	,
		[817]=	132.8427642	,
		[818]=	132.9240385	,
		[819]=	133.0052631	,
		[820]=	133.0864381	,
		[821]=	133.1675636	,
		[822]=	133.2486398	,
		[823]=	133.3296666	,
		[824]=	133.4106443	,
		[825]=	133.4915728	,
		[826]=	133.5724522	,
		[827]=	133.6532828	,
		[828]=	133.7340645	,
		[829]=	133.8147974	,
		[830]=	133.8954816	,
		[831]=	133.9761173	,
		[832]=	134.0567044	,
		[833]=	134.1372432	,
		[834]=	134.2177336	,
		[835]=	134.2981757	,
		[836]=	134.3785697	,
		[837]=	134.4589157	,
		[838]=	134.5392136	,
		[839]=	134.6194637	,
		[840]=	134.6996659	,
		[841]=	134.7798204	,
		[842]=	134.8599273	,
		[843]=	134.9399867	,
		[844]=	135.0199985	,
		[845]=	135.099963	,
		[846]=	135.1798802	,
		[847]=	135.2597501	,
		[848]=	135.3395729	,
		[849]=	135.4193487	,
		[850]=	135.4990775	,
		[851]=	135.5787594	,
		[852]=	135.6583945	,
		[853]=	135.7379829	,
		[854]=	135.8175246	,
		[855]=	135.8970198	,
		[856]=	135.9764686	,
		[857]=	136.0558709	,
		[858]=	136.1352269	,
		[859]=	136.2145367	,
		[860]=	136.2938003	,
		[861]=	136.3730179	,
		[862]=	136.4521894	,
		[863]=	136.5313151	,
		[864]=	136.6103949	,
		[865]=	136.689429	,
		[866]=	136.7684174	,
		[867]=	136.8473602	,
		[868]=	136.9262575	,
		[869]=	137.0051094	,
		[870]=	137.0839159	,
		[871]=	137.1626771	,
		[872]=	137.2413932	,
		[873]=	137.3200641	,
		[874]=	137.39869	,
		[875]=	137.4772708	,
		[876]=	137.5558069	,
		[877]=	137.6342981	,
		[878]=	137.7127445	,
		[879]=	137.7911463	,
		[880]=	137.8695035	,
		[881]=	137.9478162	,
		[882]=	138.0260845	,
		[883]=	138.1043084	,
		[884]=	138.182488	,
		[885]=	138.2606235	,
		[886]=	138.3387148	,
		[887]=	138.416762	,
		[888]=	138.4947652	,
		[889]=	138.5727246	,
		[890]=	138.6506401	,
		[891]=	138.7285118	,
		[892]=	138.8063399	,
		[893]=	138.8841244	,
		[894]=	138.9618653	,
		[895]=	139.0395627	,
		[896]=	139.1172168	,
		[897]=	139.1948275	,
		[898]=	139.272395	,
		[899]=	139.3499193	,
		[900]=	139.4274005	,
		[901]=	139.5048386	,
		[902]=	139.5822338	,
		[903]=	139.6595861	,
		[904]=	139.7368956	,
		[905]=	139.8141624	,
		[906]=	139.8913864	,
		[907]=	139.9685679	,
		[908]=	140.0457068	,
		[909]=	140.1228033	,
		[910]=	140.1998573	,
		[911]=	140.2768691	,
		[912]=	140.3538386	,
		[913]=	140.4307659	,
		[914]=	140.507651	,
		[915]=	140.5844942	,
		[916]=	140.6612953	,
		[917]=	140.7380546	,
		[918]=	140.814772	,
		[919]=	140.8914476	,
		[920]=	140.9680815	,
		[921]=	141.0446738	,
		[922]=	141.1212245	,
		[923]=	141.1977337	,
		[924]=	141.2742015	,
		[925]=	141.3506279	,
		[926]=	141.427013	,
		[927]=	141.5033569	,
		[928]=	141.5796596	,
		[929]=	141.6559212	,
		[930]=	141.7321417	,
		[931]=	141.8083213	,
		[932]=	141.88446	,
		[933]=	141.9605579	,
		[934]=	142.036615	,
		[935]=	142.1126314	,
		[936]=	142.1886071	,
		[937]=	142.2645423	,
		[938]=	142.340437	,
		[939]=	142.4162912	,
		[940]=	142.492105	,
		[941]=	142.5678786	,
		[942]=	142.6436118	,
		[943]=	142.7193049	,
		[944]=	142.7949579	,
		[945]=	142.8705708	,
		[946]=	142.9461437	,
		[947]=	143.0216767	,
		[948]=	143.0971698	,
		[949]=	143.1726231	,
		[950]=	143.2480366	,
		[951]=	143.3234105	,
		[952]=	143.3987448	,
		[953]=	143.4740395	,
		[954]=	143.5492947	,
		[955]=	143.6245104	,
		[956]=	143.6996868	,
		[957]=	143.7748239	,
		[958]=	143.8499218	,
		[959]=	143.9249805	,
		[960]=	144	,
		[961]=	144.0749805	,
		[962]=	144.149922	,
		[963]=	144.2248245	,
		[964]=	144.2996881	,
		[965]=	144.374513	,
		[966]=	144.4492991	,
		[967]=	144.5240464	,
		[968]=	144.5987552	,
		[969]=	144.6734253	,
		[970]=	144.748057	,
		[971]=	144.8226502	,
		[972]=	144.8972049	,
		[973]=	144.9717214	,
		[974]=	145.0461995	,
		[975]=	145.1206395	,
		[976]=	145.1950412	,
		[977]=	145.2694049	,
		[978]=	145.3437305	,
		[979]=	145.4180181	,
		[980]=	145.4922678	,
		[981]=	145.5664797	,
		[982]=	145.6406537	,
		[983]=	145.7147899	,
		[984]=	145.7888885	,
		[985]=	145.8629494	,
		[986]=	145.9369727	,
		[987]=	146.0109585	,
		[988]=	146.0849068	,
		[989]=	146.1588177	,
		[990]=	146.2326913	,
		[991]=	146.3065275	,
		[992]=	146.3803265	,
		[993]=	146.4540884	,
		[994]=	146.5278131	,
		[995]=	146.6015007	,
		[996]=	146.6751513	,
		[997]=	146.7487649	,
		[998]=	146.8223416	,
		[999]=	146.8958815	,
		[1000]=	146.9693846	,
	};

	for (local i = 0; i < 1000; ++i)
	{
		if (brake_pattern_table[i] >= limit_speed)
		{
			return i;
		}
	}

	return 1000;
}

function get_incoming_pattern_offset(limit_speed)
{
	local incoming_pattern_table = 
	{
		[0]=	0	,
		[1]=	0	,
		[2]=	1.292853089	,
		[3]=	2.707139547	,
		[4]=	3.899438185	,
		[5]=	4.949874371	,
		[6]=	5.899541275	,
		[7]=	6.772850122	,
		[8]=	7.585706178	,
		[9]=	8.349157277	,
		[10]=	9.071247279	,
		[11]=	9.758048651	,
		[12]=	10.41427909	,
		[13]=	11.04369035	,
		[14]=	11.64932431	,
		[15]=	12.23368794	,
		[16]=	12.79887637	,
		[17]=	13.34666182	,
		[18]=	13.87855927	,
		[19]=	14.39587585	,
		[20]=	14.89974874	,
		[21]=	15.39117456	,
		[22]=	15.87103256	,
		[23]=	16.34010309	,
		[24]=	16.79908255	,
		[25]=	17.24859546	,
		[26]=	17.68920448	,
		[27]=	18.12141864	,
		[28]=	18.54570024	,
		[29]=	18.96247066	,
		[30]=	19.37211521	,
		[31]=	19.77498739	,
		[32]=	20.17141236	,
		[33]=	20.56169008	,
		[34]=	20.94609797	,
		[35]=	21.32489316	,
		[36]=	21.69831455	,
		[37]=	22.06658456	,
		[38]=	22.42991068	,
		[39]=	22.78848682	,
		[40]=	23.14249456	,
		[41]=	23.49210417	,
		[42]=	23.83747562	,
		[43]=	24.1787594	,
		[44]=	24.5160973	,
		[45]=	24.84962311	,
		[46]=	25.17946322	,
		[47]=	25.50573717	,
		[48]=	25.82855819	,
		[49]=	26.14803365	,
		[50]=	26.46426545	,
		[51]=	26.77735042	,
		[52]=	27.0873807	,
		[53]=	27.39444397	,
		[54]=	27.69862382	,
		[55]=	28	,
		[56]=	28.29864862	,
		[57]=	28.59464243	,
		[58]=	28.88805099	,
		[59]=	29.17894088	,
		[60]=	29.46737588	,
		[61]=	29.7534171	,
		[62]=	30.03712317	,
		[63]=	30.31855037	,
		[64]=	30.59775274	,
		[65]=	30.87478223	,
		[66]=	31.1496888	,
		[67]=	31.42252051	,
		[68]=	31.69332364	,
		[69]=	31.9621428	,
		[70]=	32.22902094	,
		[71]=	32.49399952	,
		[72]=	32.75711853	,
		[73]=	33.01841659	,
		[74]=	33.27793098	,
		[75]=	33.53569774	,
		[76]=	33.7917517	,
		[77]=	34.04612657	,
		[78]=	34.29885495	,
		[79]=	34.54996839	,
		[80]=	34.79949748	,
		[81]=	35.04747183	,
		[82]=	35.29392014	,
		[83]=	35.53887024	,
		[84]=	35.78234912	,
		[85]=	36.02438299	,
		[86]=	36.26499727	,
		[87]=	36.50421665	,
		[88]=	36.74206511	,
		[89]=	36.97856596	,
		[90]=	37.21374184	,
		[91]=	37.44761477	,
		[92]=	37.68020619	,
		[93]=	37.91153691	,
		[94]=	38.14162723	,
		[95]=	38.37049688	,
		[96]=	38.5981651	,
		[97]=	38.8246506	,
		[98]=	39.04997162	,
		[99]=	39.27414595	,
		[100]=	39.49719092	,
		[101]=	39.71912343	,
		[102]=	39.93995995	,
		[103]=	40.15971656	,
		[104]=	40.37840896	,
		[105]=	40.59605246	,
		[106]=	40.81266201	,
		[107]=	41.02825219	,
		[108]=	41.24283728	,
		[109]=	41.4564312	,
		[110]=	41.66904756	,
		[111]=	41.88069965	,
		[112]=	42.09140049	,
		[113]=	42.30116278	,
		[114]=	42.50999895	,
		[115]=	42.71792116	,
		[116]=	42.92494131	,
		[117]=	43.13107105	,
		[118]=	43.33632175	,
		[119]=	43.54070457	,
		[120]=	43.74423043	,
		[121]=	43.94691001	,
		[122]=	44.1487538	,
		[123]=	44.34977204	,
		[124]=	44.54997477	,
		[125]=	44.74937186	,
		[126]=	44.94797293	,
		[127]=	45.14578746	,
		[128]=	45.34282471	,
		[129]=	45.53909378	,
		[130]=	45.73460358	,
		[131]=	45.92936285	,
		[132]=	46.12338017	,
		[133]=	46.31666396	,
		[134]=	46.50922248	,
		[135]=	46.70106382	,
		[136]=	46.89219595	,
		[137]=	47.08262666	,
		[138]=	47.27236364	,
		[139]=	47.46141439	,
		[140]=	47.64978632	,
		[141]=	47.83748669	,
		[142]=	48.02452263	,
		[143]=	48.21090114	,
		[144]=	48.39662911	,
		[145]=	48.5817133	,
		[146]=	48.76616036	,
		[147]=	48.94997683	,
		[148]=	49.13316913	,
		[149]=	49.31574357	,
		[150]=	49.49770637	,
		[151]=	49.67906363	,
		[152]=	49.85982136	,
		[153]=	50.03998547	,
		[154]=	50.21956175	,
		[155]=	50.39855594	,
		[156]=	50.57697365	,
		[157]=	50.75482042	,
		[158]=	50.93210169	,
		[159]=	51.10882284	,
		[160]=	51.28498912	,
		[161]=	51.46060574	,
		[162]=	51.6356778	,
		[163]=	51.81021035	,
		[164]=	51.98420834	,
		[165]=	52.15767665	,
		[166]=	52.33062009	,
		[167]=	52.5030434	,
		[168]=	52.67495124	,
		[169]=	52.8463482	,
		[170]=	53.01723882	,
		[171]=	53.18762755	,
		[172]=	53.3575188	,
		[173]=	53.52691688	,
		[174]=	53.69582609	,
		[175]=	53.86425061	,
		[176]=	54.03219461	,
		[177]=	54.19966216	,
		[178]=	54.36665731	,
		[179]=	54.53318402	,
		[180]=	54.69924623	,
		[181]=	54.86484778	,
		[182]=	55.0299925	,
		[183]=	55.19468415	,
		[184]=	55.35892643	,
		[185]=	55.52272301	,
		[186]=	55.68607748	,
		[187]=	55.84899342	,
		[188]=	56.01147433	,
		[189]=	56.17352368	,
		[190]=	56.3351449	,
		[191]=	56.49634135	,
		[192]=	56.65711638	,
		[193]=	56.81747326	,
		[194]=	56.97741524	,
		[195]=	57.13694553	,
		[196]=	57.29606729	,
		[197]=	57.45478364	,
		[198]=	57.61309767	,
		[199]=	57.77101242	,
		[200]=	57.92853089	,
		[201]=	58.08565606	,
		[202]=	58.24239085	,
		[203]=	58.39873816	,
		[204]=	58.55470085	,
		[205]=	58.71028174	,
		[206]=	58.86548364	,
		[207]=	59.02030928	,
		[208]=	59.17476139	,
		[209]=	59.32884268	,
		[210]=	59.48255578	,
		[211]=	59.63590334	,
		[212]=	59.78888794	,
		[213]=	59.94151215	,
		[214]=	60.0937785	,
		[215]=	60.24568951	,
		[216]=	60.39724765	,
		[217]=	60.54845536	,
		[218]=	60.69931506	,
		[219]=	60.84982916	,
		[220]=	61	,
		[221]=	61.14982993	,
		[222]=	61.29932126	,
		[223]=	61.44847628	,
		[224]=	61.59729724	,
		[225]=	61.74578638	,
		[226]=	61.89394591	,
		[227]=	62.04177802	,
		[228]=	62.18928486	,
		[229]=	62.33646857	,
		[230]=	62.48333128	,
		[231]=	62.62987506	,
		[232]=	62.77610198	,
		[233]=	62.9220141	,
		[234]=	63.06761344	,
		[235]=	63.21290201	,
		[236]=	63.35788177	,
		[237]=	63.5025547	,
		[238]=	63.64692273	,
		[239]=	63.79098778	,
		[240]=	63.93475176	,
		[241]=	64.07821654	,
		[242]=	64.22138398	,
		[243]=	64.36425592	,
		[244]=	64.5068342	,
		[245]=	64.6491206	,
		[246]=	64.79111691	,
		[247]=	64.93282491	,
		[248]=	65.07424634	,
		[249]=	65.21538293	,
		[250]=	65.3562364	,
		[251]=	65.49680844	,
		[252]=	65.63710073	,
		[253]=	65.77711495	,
		[254]=	65.91685272	,
		[255]=	66.05631569	,
		[256]=	66.19550548	,
		[257]=	66.33442367	,
		[258]=	66.47307185	,
		[259]=	66.6114516	,
		[260]=	66.74956446	,
		[261]=	66.88741197	,
		[262]=	67.02499566	,
		[263]=	67.16231704	,
		[264]=	67.29937759	,
		[265]=	67.43617881	,
		[266]=	67.57272215	,
		[267]=	67.70900907	,
		[268]=	67.84504101	,
		[269]=	67.9808194	,
		[270]=	68.11634564	,
		[271]=	68.25162114	,
		[272]=	68.38664729	,
		[273]=	68.52142545	,
		[274]=	68.65595699	,
		[275]=	68.79024326	,
		[276]=	68.92428559	,
		[277]=	69.05808531	,
		[278]=	69.19164373	,
		[279]=	69.32496216	,
		[280]=	69.45804188	,
		[281]=	69.59088416	,
		[282]=	69.72349028	,
		[283]=	69.85586149	,
		[284]=	69.98799904	,
		[285]=	70.11990415	,
		[286]=	70.25157806	,
		[287]=	70.38302196	,
		[288]=	70.51423707	,
		[289]=	70.64522457	,
		[290]=	70.77598564	,
		[291]=	70.90652146	,
		[292]=	71.03683318	,
		[293]=	71.16692195	,
		[294]=	71.29678892	,
		[295]=	71.42643522	,
		[296]=	71.55586196	,
		[297]=	71.68507025	,
		[298]=	71.81406121	,
		[299]=	71.94283592	,
		[300]=	72.07139547	,
		[301]=	72.19974093	,
		[302]=	72.32787337	,
		[303]=	72.45579384	,
		[304]=	72.5835034	,
		[305]=	72.71100308	,
		[306]=	72.83829392	,
		[307]=	72.96537693	,
		[308]=	73.09225314	,
		[309]=	73.21892354	,
		[310]=	73.34538914	,
		[311]=	73.47165093	,
		[312]=	73.59770989	,
		[313]=	73.72356699	,
		[314]=	73.8492232	,
		[315]=	73.97467949	,
		[316]=	74.09993679	,
		[317]=	74.22499606	,
		[318]=	74.34985822	,
		[319]=	74.47452422	,
		[320]=	74.59899497	,
		[321]=	74.72327138	,
		[322]=	74.84735437	,
		[323]=	74.97124483	,
		[324]=	75.09494366	,
		[325]=	75.21845174	,
		[326]=	75.34176996	,
		[327]=	75.46489918	,
		[328]=	75.58784027	,
		[329]=	75.7105941	,
		[330]=	75.83316151	,
		[331]=	75.95554336	,
		[332]=	76.07774047	,
		[333]=	76.19975369	,
		[334]=	76.32158385	,
		[335]=	76.44323176	,
		[336]=	76.56469825	,
		[337]=	76.68598411	,
		[338]=	76.80709016	,
		[339]=	76.92801719	,
		[340]=	77.04876599	,
		[341]=	77.16933735	,
		[342]=	77.28973204	,
		[343]=	77.40995086	,
		[344]=	77.52999455	,
		[345]=	77.64986388	,
		[346]=	77.76955962	,
		[347]=	77.88908251	,
		[348]=	78.00843331	,
		[349]=	78.12761274	,
		[350]=	78.24662155	,
		[351]=	78.36546047	,
		[352]=	78.48413023	,
		[353]=	78.60263154	,
		[354]=	78.72096512	,
		[355]=	78.83913167	,
		[356]=	78.95713192	,
		[357]=	79.07496655	,
		[358]=	79.19263626	,
		[359]=	79.31014174	,
		[360]=	79.42748368	,
		[361]=	79.54466275	,
		[362]=	79.66167964	,
		[363]=	79.77853502	,
		[364]=	79.89522955	,
		[365]=	80.01176389	,
		[366]=	80.12813871	,
		[367]=	80.24435465	,
		[368]=	80.36041237	,
		[369]=	80.47631251	,
		[370]=	80.59205571	,
		[371]=	80.7076426	,
		[372]=	80.82307382	,
		[373]=	80.93835	,
		[374]=	81.05347175	,
		[375]=	81.1684397	,
		[376]=	81.28325446	,
		[377]=	81.39791664	,
		[378]=	81.51242685	,
		[379]=	81.6267857	,
		[380]=	81.74099377	,
		[381]=	81.85505167	,
		[382]=	81.96895998	,
		[383]=	82.0827193	,
		[384]=	82.1963302	,
		[385]=	82.30979327	,
		[386]=	82.42310907	,
		[387]=	82.53627819	,
		[388]=	82.6493012	,
		[389]=	82.76217864	,
		[390]=	82.8749111	,
		[391]=	82.98749911	,
		[392]=	83.09994325	,
		[393]=	83.21224405	,
		[394]=	83.32440206	,
		[395]=	83.43641784	,
		[396]=	83.54829191	,
		[397]=	83.66002481	,
		[398]=	83.77161709	,
		[399]=	83.88306925	,
		[400]=	83.99438185	,
		[401]=	84.10555538	,
		[402]=	84.21659039	,
		[403]=	84.32748737	,
		[404]=	84.43824685	,
		[405]=	84.54886934	,
		[406]=	84.65935534	,
		[407]=	84.76970536	,
		[408]=	84.87991989	,
		[409]=	84.98999944	,
		[410]=	85.09994451	,
		[411]=	85.20975557	,
		[412]=	85.31943312	,
		[413]=	85.42897766	,
		[414]=	85.53838965	,
		[415]=	85.64766958	,
		[416]=	85.75681793	,
		[417]=	85.86583516	,
		[418]=	85.97472176	,
		[419]=	86.08347819	,
		[420]=	86.19210492	,
		[421]=	86.30060241	,
		[422]=	86.40897111	,
		[423]=	86.5172115	,
		[424]=	86.62532401	,
		[425]=	86.73330911	,
		[426]=	86.84116724	,
		[427]=	86.94889885	,
		[428]=	87.05650439	,
		[429]=	87.16398429	,
		[430]=	87.271339	,
		[431]=	87.37856894	,
		[432]=	87.48567457	,
		[433]=	87.5926563	,
		[434]=	87.69951456	,
		[435]=	87.80624979	,
		[436]=	87.9128624	,
		[437]=	88.01935283	,
		[438]=	88.12572147	,
		[439]=	88.23196877	,
		[440]=	88.33809512	,
		[441]=	88.44410094	,
		[442]=	88.54998664	,
		[443]=	88.65575263	,
		[444]=	88.76139931	,
		[445]=	88.86692708	,
		[446]=	88.97233635	,
		[447]=	89.07762752	,
		[448]=	89.18280098	,
		[449]=	89.28785712	,
		[450]=	89.39279634	,
		[451]=	89.49761902	,
		[452]=	89.60232555	,
		[453]=	89.70691633	,
		[454]=	89.81139172	,
		[455]=	89.91575212	,
		[456]=	90.0199979	,
		[457]=	90.12412943	,
		[458]=	90.2281471	,
		[459]=	90.33205127	,
		[460]=	90.43584232	,
		[461]=	90.53952062	,
		[462]=	90.64308652	,
		[463]=	90.74654041	,
		[464]=	90.84988263	,
		[465]=	90.95311355	,
		[466]=	91.05623353	,
		[467]=	91.15924293	,
		[468]=	91.26214209	,
		[469]=	91.36493138	,
		[470]=	91.46761114	,
		[471]=	91.57018173	,
		[472]=	91.67264349	,
		[473]=	91.77499677	,
		[474]=	91.87724191	,
		[475]=	91.97937925	,
		[476]=	92.08140914	,
		[477]=	92.1833319	,
		[478]=	92.28514789	,
		[479]=	92.38685743	,
		[480]=	92.48846086	,
		[481]=	92.5899585	,
		[482]=	92.69135069	,
		[483]=	92.79263776	,
		[484]=	92.89382003	,
		[485]=	92.99489783	,
		[486]=	93.09587147	,
		[487]=	93.19674129	,
		[488]=	93.2975076	,
		[489]=	93.39817071	,
		[490]=	93.49873096	,
		[491]=	93.59918864	,
		[492]=	93.69954407	,
		[493]=	93.79979757	,
		[494]=	93.89994944	,
		[495]=	94	,
		[496]=	94.09994955	,
		[497]=	94.19979839	,
		[498]=	94.29954683	,
		[499]=	94.39919517	,
		[500]=	94.49874371	,
		[501]=	94.59819275	,
		[502]=	94.6975426	,
		[503]=	94.79679354	,
		[504]=	94.89594586	,
		[505]=	94.99499987	,
		[506]=	95.09395586	,
		[507]=	95.19281411	,
		[508]=	95.29157492	,
		[509]=	95.39023857	,
		[510]=	95.48880535	,
		[511]=	95.58727554	,
		[512]=	95.68564942	,
		[513]=	95.78392729	,
		[514]=	95.88210941	,
		[515]=	95.98019608	,
		[516]=	96.07818756	,
		[517]=	96.17608413	,
		[518]=	96.27388607	,
		[519]=	96.37159365	,
		[520]=	96.46920715	,
		[521]=	96.56672684	,
		[522]=	96.66415297	,
		[523]=	96.76148584	,
		[524]=	96.85872569	,
		[525]=	96.95587281	,
		[526]=	97.05292744	,
		[527]=	97.14988987	,
		[528]=	97.24676034	,
		[529]=	97.34353912	,
		[530]=	97.44022647	,
		[531]=	97.53682265	,
		[532]=	97.63332792	,
		[533]=	97.72974253	,
		[534]=	97.82606673	,
		[535]=	97.92230079	,
		[536]=	98.01844495	,
		[537]=	98.11449947	,
		[538]=	98.21046459	,
		[539]=	98.30634056	,
		[540]=	98.40212764	,
		[541]=	98.49782606	,
		[542]=	98.59343609	,
		[543]=	98.68895795	,
		[544]=	98.78439189	,
		[545]=	98.87973816	,
		[546]=	98.97499699	,
		[547]=	99.07016864	,
		[548]=	99.16525332	,
		[549]=	99.26025129	,
		[550]=	99.35516279	,
		[551]=	99.44998803	,
		[552]=	99.54472727	,
		[553]=	99.63938073	,
		[554]=	99.73394865	,
		[555]=	99.82843126	,
		[556]=	99.92282878	,
		[557]=	100.0171415	,
		[558]=	100.1113695	,
		[559]=	100.2055132	,
		[560]=	100.2995726	,
		[561]=	100.3935482	,
		[562]=	100.48744	,
		[563]=	100.5812483	,
		[564]=	100.6749734	,
		[565]=	100.7686154	,
		[566]=	100.8621745	,
		[567]=	100.9556511	,
		[568]=	101.0490453	,
		[569]=	101.1423572	,
		[570]=	101.2355873	,
		[571]=	101.3287355	,
		[572]=	101.4218023	,
		[573]=	101.5147877	,
		[574]=	101.607692	,
		[575]=	101.7005155	,
		[576]=	101.7932582	,
		[577]=	101.8859205	,
		[578]=	101.9785025	,
		[579]=	102.0710045	,
		[580]=	102.1634266	,
		[581]=	102.2557691	,
		[582]=	102.3480321	,
		[583]=	102.4402159	,
		[584]=	102.5323207	,
		[585]=	102.6243467	,
		[586]=	102.716294	,
		[587]=	102.808163	,
		[588]=	102.8999537	,
		[589]=	102.9916663	,
		[590]=	103.0833012	,
		[591]=	103.1748584	,
		[592]=	103.2663383	,
		[593]=	103.3577408	,
		[594]=	103.4490664	,
		[595]=	103.5403151	,
		[596]=	103.6314871	,
		[597]=	103.7225828	,
		[598]=	103.8136021	,
		[599]=	103.9045454	,
		[600]=	103.9954127	,
		[601]=	104.0862044	,
		[602]=	104.1769206	,
		[603]=	104.2675615	,
		[604]=	104.3581273	,
		[605]=	104.4486181	,
		[606]=	104.5390341	,
		[607]=	104.6293756	,
		[608]=	104.7196427	,
		[609]=	104.8098356	,
		[610]=	104.8999545	,
		[611]=	104.9899995	,
		[612]=	105.0799709	,
		[613]=	105.1698688	,
		[614]=	105.2596935	,
		[615]=	105.3494449	,
		[616]=	105.4391235	,
		[617]=	105.5287293	,
		[618]=	105.6182625	,
		[619]=	105.7077233	,
		[620]=	105.7971119	,
		[621]=	105.8864284	,
		[622]=	105.975673	,
		[623]=	106.0648459	,
		[624]=	106.1539473	,
		[625]=	106.2429773	,
		[626]=	106.3319361	,
		[627]=	106.4208239	,
		[628]=	106.5096408	,
		[629]=	106.5983871	,
		[630]=	106.6870628	,
		[631]=	106.7756682	,
		[632]=	106.8642034	,
		[633]=	106.9526686	,
		[634]=	107.0410639	,
		[635]=	107.1293895	,
		[636]=	107.2176457	,
		[637]=	107.3058324	,
		[638]=	107.39395	,
		[639]=	107.4819986	,
		[640]=	107.5699782	,
		[641]=	107.6578892	,
		[642]=	107.7457316	,
		[643]=	107.8335057	,
		[644]=	107.9212115	,
		[645]=	108.0088492	,
		[646]=	108.096419	,
		[647]=	108.1839211	,
		[648]=	108.2713556	,
		[649]=	108.3587226	,
		[650]=	108.4460224	,
		[651]=	108.533255	,
		[652]=	108.6204207	,
		[653]=	108.7075195	,
		[654]=	108.7945517	,
		[655]=	108.8815174	,
		[656]=	108.9684167	,
		[657]=	109.0552498	,
		[658]=	109.1420168	,
		[659]=	109.2287179	,
		[660]=	109.3153533	,
		[661]=	109.4019231	,
		[662]=	109.4884274	,
		[663]=	109.5748664	,
		[664]=	109.6612402	,
		[665]=	109.747549	,
		[666]=	109.8337929	,
		[667]=	109.9199722	,
		[668]=	110.0060868	,
		[669]=	110.092137	,
		[670]=	110.1781229	,
		[671]=	110.2640447	,
		[672]=	110.3499025	,
		[673]=	110.4356964	,
		[674]=	110.5214266	,
		[675]=	110.6070932	,
		[676]=	110.6926964	,
		[677]=	110.7782363	,
		[678]=	110.863713	,
		[679]=	110.9491268	,
		[680]=	111.0344776	,
		[681]=	111.1197658	,
		[682]=	111.2049913	,
		[683]=	111.2901544	,
		[684]=	111.3752551	,
		[685]=	111.4602937	,
		[686]=	111.5452702	,
		[687]=	111.6301848	,
		[688]=	111.7150376	,
		[689]=	111.7998288	,
		[690]=	111.8845584	,
		[691]=	111.9692267	,
		[692]=	112.0538338	,
		[693]=	112.1383797	,
		[694]=	112.2228647	,
		[695]=	112.3072888	,
		[696]=	112.3916522	,
		[697]=	112.475955	,
		[698]=	112.5601973	,
		[699]=	112.6443794	,
		[700]=	112.7285012	,
		[701]=	112.812563	,
		[702]=	112.8965648	,
		[703]=	112.9805069	,
		[704]=	113.0643892	,
		[705]=	113.148212	,
		[706]=	113.2319754	,
		[707]=	113.3156794	,
		[708]=	113.3993243	,
		[709]=	113.4829102	,
		[710]=	113.5664371	,
		[711]=	113.6499052	,
		[712]=	113.7333146	,
		[713]=	113.8166655	,
		[714]=	113.8999579	,
		[715]=	113.9831921	,
		[716]=	114.066368	,
		[717]=	114.1494859	,
		[718]=	114.2325459	,
		[719]=	114.315548	,
		[720]=	114.3984925	,
		[721]=	114.4813793	,
		[722]=	114.5642087	,
		[723]=	114.6469807	,
		[724]=	114.7296956	,
		[725]=	114.8123533	,
		[726]=	114.894954	,
		[727]=	114.9774979	,
		[728]=	115.059985	,
		[729]=	115.1424155	,
		[730]=	115.2247895	,
		[731]=	115.307107	,
		[732]=	115.3893683	,
		[733]=	115.4715734	,
		[734]=	115.5537225	,
		[735]=	115.6358156	,
		[736]=	115.7178529	,
		[737]=	115.7998344	,
		[738]=	115.8817604	,
		[739]=	115.9636309	,
		[740]=	116.045446	,
		[741]=	116.1272059	,
		[742]=	116.2089106	,
		[743]=	116.2905602	,
		[744]=	116.372155	,
		[745]=	116.4536949	,
		[746]=	116.5351801	,
		[747]=	116.6166107	,
		[748]=	116.6979868	,
		[749]=	116.7793086	,
		[750]=	116.8605761	,
		[751]=	116.9417894	,
		[752]=	117.0229487	,
		[753]=	117.104054	,
		[754]=	117.1851055	,
		[755]=	117.2661032	,
		[756]=	117.3470474	,
		[757]=	117.427938	,
		[758]=	117.5087752	,
		[759]=	117.5895591	,
		[760]=	117.6702898	,
		[761]=	117.7509674	,
		[762]=	117.831592	,
		[763]=	117.9121638	,
		[764]=	117.9926827	,
		[765]=	118.073149	,
		[766]=	118.1535627	,
		[767]=	118.2339239	,
		[768]=	118.3142328	,
		[769]=	118.3944893	,
		[770]=	118.4746938	,
		[771]=	118.5548461	,
		[772]=	118.6349465	,
		[773]=	118.714995	,
		[774]=	118.7949918	,
		[775]=	118.8749369	,
		[776]=	118.9548305	,
		[777]=	119.0346726	,
		[778]=	119.1144633	,
		[779]=	119.1942028	,
		[780]=	119.2738911	,
		[781]=	119.3535283	,
		[782]=	119.4331146	,
		[783]=	119.51265	,
		[784]=	119.5921346	,
		[785]=	119.6715685	,
		[786]=	119.7509519	,
		[787]=	119.8302848	,
		[788]=	119.9095673	,
		[789]=	119.9887995	,
		[790]=	120.0679815	,
		[791]=	120.1471134	,
		[792]=	120.2261953	,
		[793]=	120.3052273	,
		[794]=	120.3842095	,
		[795]=	120.463142	,
		[796]=	120.5420248	,
		[797]=	120.6208581	,
		[798]=	120.699642	,
		[799]=	120.7783765	,
		[800]=	120.8570618	,
		[801]=	120.9356979	,
		[802]=	121.0142849	,
		[803]=	121.092823	,
		[804]=	121.1713121	,
		[805]=	121.2497525	,
		[806]=	121.3281441	,
		[807]=	121.4064872	,
		[808]=	121.4847817	,
		[809]=	121.5630278	,
		[810]=	121.6412255	,
		[811]=	121.719375	,
		[812]=	121.7974763	,
		[813]=	121.8755296	,
		[814]=	121.9535348	,
		[815]=	122.0314922	,
		[816]=	122.1094017	,
		[817]=	122.1872635	,
		[818]=	122.2650777	,
		[819]=	122.3428443	,
		[820]=	122.4205635	,
		[821]=	122.4982353	,
		[822]=	122.5758598	,
		[823]=	122.6534371	,
		[824]=	122.7309673	,
		[825]=	122.8084504	,
		[826]=	122.8858866	,
		[827]=	122.963276	,
		[828]=	123.0406186	,
		[829]=	123.1179144	,
		[830]=	123.1951637	,
		[831]=	123.2723665	,
		[832]=	123.3495228	,
		[833]=	123.4266328	,
		[834]=	123.5036964	,
		[835]=	123.580714	,
		[836]=	123.6576854	,
		[837]=	123.7346107	,
		[838]=	123.8114902	,
		[839]=	123.8883238	,
		[840]=	123.9651116	,
		[841]=	124.0418537	,
		[842]=	124.1185502	,
		[843]=	124.1952011	,
		[844]=	124.2718067	,
		[845]=	124.3483668	,
		[846]=	124.4248817	,
		[847]=	124.5013513	,
		[848]=	124.5777759	,
		[849]=	124.6541554	,
		[850]=	124.7304899	,
		[851]=	124.8067795	,
		[852]=	124.8830243	,
		[853]=	124.9592244	,
		[854]=	125.0353798	,
		[855]=	125.1114907	,
		[856]=	125.187557	,
		[857]=	125.2635789	,
		[858]=	125.3395565	,
		[859]=	125.4154899	,
		[860]=	125.491379	,
		[861]=	125.5672241	,
		[862]=	125.6430251	,
		[863]=	125.7187821	,
		[864]=	125.7944953	,
		[865]=	125.8701647	,
		[866]=	125.9457903	,
		[867]=	126.0213723	,
		[868]=	126.0969107	,
		[869]=	126.1724056	,
		[870]=	126.2478571	,
		[871]=	126.3232653	,
		[872]=	126.3986301	,
		[873]=	126.4739518	,
		[874]=	126.5492303	,
		[875]=	126.6244658	,
		[876]=	126.6996583	,
		[877]=	126.7748079	,
		[878]=	126.8499147	,
		[879]=	126.9249787	,
		[880]=	127	,
		[881]=	127.0749787	,
		[882]=	127.1499149	,
		[883]=	127.2248086	,
		[884]=	127.2996599	,
		[885]=	127.3744688	,
		[886]=	127.4492356	,
		[887]=	127.5239601	,
		[888]=	127.5986425	,
		[889]=	127.6732829	,
		[890]=	127.7478813	,
		[891]=	127.8224379	,
		[892]=	127.8969526	,
		[893]=	127.9714255	,
		[894]=	128.0458568	,
		[895]=	128.1202464	,
		[896]=	128.1945945	,
		[897]=	128.2689011	,
		[898]=	128.3431663	,
		[899]=	128.4173902	,
		[900]=	128.4915728	,
		[901]=	128.5657142	,
		[902]=	128.6398144	,
		[903]=	128.7138736	,
		[904]=	128.7878918	,
		[905]=	128.8618691	,
		[906]=	128.9358055	,
		[907]=	129.0097011	,
		[908]=	129.083556	,
		[909]=	129.1573703	,
		[910]=	129.2311439	,
		[911]=	129.3048771	,
		[912]=	129.3785697	,
		[913]=	129.452222	,
		[914]=	129.525834	,
		[915]=	129.5994056	,
		[916]=	129.6729371	,
		[917]=	129.7464285	,
		[918]=	129.8198798	,
		[919]=	129.8932912	,
		[920]=	129.9666626	,
		[921]=	130.0399941	,
		[922]=	130.1132858	,
		[923]=	130.1865378	,
		[924]=	130.2597501	,
		[925]=	130.3329228	,
		[926]=	130.406056	,
		[927]=	130.4791497	,
		[928]=	130.552204	,
		[929]=	130.6252189	,
		[930]=	130.6981945	,
		[931]=	130.771131	,
		[932]=	130.8440282	,
		[933]=	130.9168864	,
		[934]=	130.9897055	,
		[935]=	131.0624856	,
		[936]=	131.1352269	,
		[937]=	131.2079293	,
		[938]=	131.2805929	,
		[939]=	131.3532178	,
		[940]=	131.425804	,
		[941]=	131.4983516	,
		[942]=	131.5708607	,
		[943]=	131.6433313	,
		[944]=	131.7157635	,
		[945]=	131.7881574	,
		[946]=	131.8605129	,
		[947]=	131.9328302	,
		[948]=	132.0051094	,
		[949]=	132.0773504	,
		[950]=	132.1495534	,
		[951]=	132.2217184	,
		[952]=	132.2938455	,
		[953]=	132.3659346	,
		[954]=	132.437986	,
		[955]=	132.5099996	,
		[956]=	132.5819756	,
		[957]=	132.6539139	,
		[958]=	132.7258146	,
		[959]=	132.7976778	,
		[960]=	132.8695035	,
		[961]=	132.9412919	,
		[962]=	133.0130429	,
		[963]=	133.0847566	,
		[964]=	133.1564331	,
		[965]=	133.2280724	,
		[966]=	133.2996746	,
		[967]=	133.3712398	,
		[968]=	133.442768	,
		[969]=	133.5142592	,
		[970]=	133.5857135	,
		[971]=	133.6571311	,
		[972]=	133.7285118	,
		[973]=	133.7998559	,
		[974]=	133.8711633	,
		[975]=	133.9424341	,
		[976]=	134.0136684	,
		[977]=	134.0848662	,
		[978]=	134.1560275	,
		[979]=	134.2271525	,
		[980]=	134.2982412	,
		[981]=	134.3692936	,
		[982]=	134.4403098	,
		[983]=	134.5112899	,
		[984]=	134.5822338	,
		[985]=	134.6531417	,
		[986]=	134.7240137	,
		[987]=	134.7948497	,
		[988]=	134.8656498	,
		[989]=	134.9364141	,
		[990]=	135.0071427	,
		[991]=	135.0778355	,
		[992]=	135.1484927	,
		[993]=	135.2191142	,
		[994]=	135.2897003	,
		[995]=	135.3602508	,
		[996]=	135.4307659	,
		[997]=	135.5012455	,
		[998]=	135.5716899	,
		[999]=	135.642099	,
		[1000]=	135.7124728	,
	};

	for (local i = 0; i < 1000; ++i)
	{
		if (incoming_pattern_table[i] >= (limit_speed - 5.0))
		{
			return i;
		}
	}

	return 1000;
}

function lookup_brake_pattern(limit_speed, accum_distance, target_distance, offset_distance)
{
	local brake_pattern_table = 
	{
		[0]=	0	,
		[1]=	4.647580015	,
		[2]=	6.57267069	,
		[3]=	8.049844719	,
		[4]=	9.295160031	,
		[5]=	10.39230485	,
		[6]=	11.38419958	,
		[7]=	12.29634092	,
		[8]=	13.14534138	,
		[9]=	13.94274005	,
		[10]=	14.69693846	,
		[11]=	15.41427909	,
		[12]=	16.09968944	,
		[13]=	16.75708805	,
		[14]=	17.3896521	,
		[15]=	18	,
		[16]=	18.59032006	,
		[17]=	19.16246331	,
		[18]=	19.71801207	,
		[19]=	20.25833162	,
		[20]=	20.78460969	,
		[21]=	21.29788722	,
		[22]=	21.79908255	,
		[23]=	22.28901075	,
		[24]=	22.76839915	,
		[25]=	23.23790008	,
		[26]=	23.69810119	,
		[27]=	24.14953416	,
		[28]=	24.59268184	,
		[29]=	25.02798434	,
		[30]=	25.45584412	,
		[31]=	25.87663038	,
		[32]=	26.29068276	,
		[33]=	26.69831455	,
		[34]=	27.0998155	,
		[35]=	27.49545417	,
		[36]=	27.88548009	,
		[37]=	28.27012557	,
		[38]=	28.64960733	,
		[39]=	29.02412789	,
		[40]=	29.39387691	,
		[41]=	29.75903224	,
		[42]=	30.11976096	,
		[43]=	30.47622024	,
		[44]=	30.82855819	,
		[45]=	31.17691454	,
		[46]=	31.52142129	,
		[47]=	31.86220331	,
		[48]=	32.19937888	,
		[49]=	32.53306011	,
		[50]=	32.86335345	,
		[51]=	33.19036005	,
		[52]=	33.51417611	,
		[53]=	33.83489323	,
		[54]=	34.15259873	,
		[55]=	34.46737588	,
		[56]=	34.77930419	,
		[57]=	35.08845964	,
		[58]=	35.39491489	,
		[59]=	35.69873947	,
		[60]=	36	,
		[61]=	36.29876031	,
		[62]=	36.59508164	,
		[63]=	36.88902276	,
		[64]=	37.18064012	,
		[65]=	37.46998799	,
		[66]=	37.75711853	,
		[67]=	38.04208196	,
		[68]=	38.32492661	,
		[69]=	38.60569906	,
		[70]=	38.88444419	,
		[71]=	39.16120529	,
		[72]=	39.43602414	,
		[73]=	39.70894106	,
		[74]=	39.979995	,
		[75]=	40.24922359	,
		[76]=	40.51666324	,
		[77]=	40.78234912	,
		[78]=	41.0463153	,
		[79]=	41.30859475	,
		[80]=	41.56921938	,
		[81]=	41.82822014	,
		[82]=	42.085627	,
		[83]=	42.34146903	,
		[84]=	42.59577444	,
		[85]=	42.84857057	,
		[86]=	43.09988399	,
		[87]=	43.34974048	,
		[88]=	43.5981651	,
		[89]=	43.84518218	,
		[90]=	44.09081537	,
		[91]=	44.33508768	,
		[92]=	44.57802149	,
		[93]=	44.81963855	,
		[94]=	45.05996005	,
		[95]=	45.29900661	,
		[96]=	45.53679831	,
		[97]=	45.77335469	,
		[98]=	46.00869483	,
		[99]=	46.24283728	,
		[100]=	46.47580015	,
		[101]=	46.70760109	,
		[102]=	46.93825732	,
		[103]=	47.16778562	,
		[104]=	47.39620238	,
		[105]=	47.6235236	,
		[106]=	47.84976489	,
		[107]=	48.0749415	,
		[108]=	48.29906831	,
		[109]=	48.52215989	,
		[110]=	48.74423043	,
		[111]=	48.96529383	,
		[112]=	49.18536368	,
		[113]=	49.40445324	,
		[114]=	49.62257551	,
		[115]=	49.83974318	,
		[116]=	50.05596868	,
		[117]=	50.27126416	,
		[118]=	50.48564152	,
		[119]=	50.69911242	,
		[120]=	50.91168825	,
		[121]=	51.12338017	,
		[122]=	51.33419913	,
		[123]=	51.54415583	,
		[124]=	51.75326077	,
		[125]=	51.96152423	,
		[126]=	52.16895629	,
		[127]=	52.37556682	,
		[128]=	52.58136552	,
		[129]=	52.78636188	,
		[130]=	52.9905652	,
		[131]=	53.19398462	,
		[132]=	53.39662911	,
		[133]=	53.59850744	,
		[134]=	53.79962825	,
		[135]=	54	,
		[136]=	54.199631	,
		[137]=	54.39852939	,
		[138]=	54.5967032	,
		[139]=	54.79416027	,
		[140]=	54.99090834	,
		[141]=	55.18695498	,
		[142]=	55.38230764	,
		[143]=	55.57697365	,
		[144]=	55.77096019	,
		[145]=	55.96427432	,
		[146]=	56.15692299	,
		[147]=	56.34891303	,
		[148]=	56.54025115	,
		[149]=	56.73094394	,
		[150]=	56.92099788	,
		[151]=	57.11041936	,
		[152]=	57.29921465	,
		[153]=	57.48738992	,
		[154]=	57.67495124	,
		[155]=	57.86190457	,
		[156]=	58.04825579	,
		[157]=	58.23401068	,
		[158]=	58.41917493	,
		[159]=	58.60375415	,
		[160]=	58.78775383	,
		[161]=	58.9711794	,
		[162]=	59.15403621	,
		[163]=	59.33632951	,
		[164]=	59.51806448	,
		[165]=	59.69924623	,
		[166]=	59.87987976	,
		[167]=	60.05997003	,
		[168]=	60.23952191	,
		[169]=	60.4185402	,
		[170]=	60.59702963	,
		[171]=	60.77499486	,
		[172]=	60.95244048	,
		[173]=	61.12937101	,
		[174]=	61.30579092	,
		[175]=	61.4817046	,
		[176]=	61.65711638	,
		[177]=	61.83203053	,
		[178]=	62.00645128	,
		[179]=	62.18038276	,
		[180]=	62.35382907	,
		[181]=	62.52679426	,
		[182]=	62.69928229	,
		[183]=	62.87129711	,
		[184]=	63.04284258	,
		[185]=	63.21392252	,
		[186]=	63.3845407	,
		[187]=	63.55470085	,
		[188]=	63.72440663	,
		[189]=	63.89366166	,
		[190]=	64.06246951	,
		[191]=	64.23083372	,
		[192]=	64.39875775	,
		[193]=	64.56624505	,
		[194]=	64.733299	,
		[195]=	64.89992296	,
		[196]=	65.06612022	,
		[197]=	65.23189404	,
		[198]=	65.39724765	,
		[199]=	65.56218422	,
		[200]=	65.7267069	,
		[201]=	65.89081878	,
		[202]=	66.05452293	,
		[203]=	66.21782237	,
		[204]=	66.38072009	,
		[205]=	66.54321904	,
		[206]=	66.70532213	,
		[207]=	66.86703224	,
		[208]=	67.02835221	,
		[209]=	67.18928486	,
		[210]=	67.34983296	,
		[211]=	67.50999926	,
		[212]=	67.66978646	,
		[213]=	67.82919725	,
		[214]=	67.98823428	,
		[215]=	68.14690015	,
		[216]=	68.30519746	,
		[217]=	68.46312876	,
		[218]=	68.62069659	,
		[219]=	68.77790343	,
		[220]=	68.93475176	,
		[221]=	69.09124402	,
		[222]=	69.24738262	,
		[223]=	69.40316996	,
		[224]=	69.55860838	,
		[225]=	69.71370023	,
		[226]=	69.86844781	,
		[227]=	70.02285341	,
		[228]=	70.17691928	,
		[229]=	70.33064766	,
		[230]=	70.48404075	,
		[231]=	70.63710073	,
		[232]=	70.78982978	,
		[233]=	70.94223002	,
		[234]=	71.09430357	,
		[235]=	71.24605252	,
		[236]=	71.39747895	,
		[237]=	71.54858489	,
		[238]=	71.69937238	,
		[239]=	71.84984342	,
		[240]=	72	,
		[241]=	72.14984407	,
		[242]=	72.29937759	,
		[243]=	72.44860247	,
		[244]=	72.59752062	,
		[245]=	72.74613392	,
		[246]=	72.89444423	,
		[247]=	73.04245341	,
		[248]=	73.19016327	,
		[249]=	73.33757563	,
		[250]=	73.48469228	,
		[251]=	73.63151499	,
		[252]=	73.77804551	,
		[253]=	73.92428559	,
		[254]=	74.07023694	,
		[255]=	74.21590126	,
		[256]=	74.36128025	,
		[257]=	74.50637557	,
		[258]=	74.65118887	,
		[259]=	74.7957218	,
		[260]=	74.93997598	,
		[261]=	75.08395301	,
		[262]=	75.22765449	,
		[263]=	75.37108199	,
		[264]=	75.51423707	,
		[265]=	75.65712128	,
		[266]=	75.79973615	,
		[267]=	75.9420832	,
		[268]=	76.08416392	,
		[269]=	76.22597982	,
		[270]=	76.36753237	,
		[271]=	76.50882302	,
		[272]=	76.64985323	,
		[273]=	76.79062443	,
		[274]=	76.93113804	,
		[275]=	77.07139547	,
		[276]=	77.21139812	,
		[277]=	77.35114737	,
		[278]=	77.4906446	,
		[279]=	77.62989115	,
		[280]=	77.76888838	,
		[281]=	77.90763762	,
		[282]=	78.0461402	,
		[283]=	78.18439742	,
		[284]=	78.32241059	,
		[285]=	78.46018098	,
		[286]=	78.59770989	,
		[287]=	78.73499857	,
		[288]=	78.87204828	,
		[289]=	79.00886026	,
		[290]=	79.14543575	,
		[291]=	79.28177596	,
		[292]=	79.41788212	,
		[293]=	79.55375541	,
		[294]=	79.68939704	,
		[295]=	79.82480817	,
		[296]=	79.95998999	,
		[297]=	80.09494366	,
		[298]=	80.22967032	,
		[299]=	80.36417112	,
		[300]=	80.49844719	,
		[301]=	80.63249965	,
		[302]=	80.76632962	,
		[303]=	80.8999382	,
		[304]=	81.03332648	,
		[305]=	81.16649555	,
		[306]=	81.29944649	,
		[307]=	81.43218037	,
		[308]=	81.56469825	,
		[309]=	81.69700117	,
		[310]=	81.82909018	,
		[311]=	81.96096632	,
		[312]=	82.09263061	,
		[313]=	82.22408406	,
		[314]=	82.3553277	,
		[315]=	82.48636251	,
		[316]=	82.61718949	,
		[317]=	82.74780964	,
		[318]=	82.87822392	,
		[319]=	83.00843331	,
		[320]=	83.13843876	,
		[321]=	83.26824124	,
		[322]=	83.3978417	,
		[323]=	83.52724107	,
		[324]=	83.65644028	,
		[325]=	83.78544026	,
		[326]=	83.91424194	,
		[327]=	84.04284622	,
		[328]=	84.171254	,
		[329]=	84.29946619	,
		[330]=	84.42748368	,
		[331]=	84.55530734	,
		[332]=	84.68293807	,
		[333]=	84.81037672	,
		[334]=	84.93762417	,
		[335]=	85.06468127	,
		[336]=	85.19154888	,
		[337]=	85.31822783	,
		[338]=	85.44471897	,
		[339]=	85.57102313	,
		[340]=	85.69714114	,
		[341]=	85.82307382	,
		[342]=	85.94882198	,
		[343]=	86.07438643	,
		[344]=	86.19976798	,
		[345]=	86.32496742	,
		[346]=	86.44998554	,
		[347]=	86.57482313	,
		[348]=	86.69948097	,
		[349]=	86.82395983	,
		[350]=	86.94826048	,
		[351]=	87.07238368	,
		[352]=	87.1963302	,
		[353]=	87.32010078	,
		[354]=	87.44369617	,
		[355]=	87.56711712	,
		[356]=	87.69036435	,
		[357]=	87.81343861	,
		[358]=	87.93634061	,
		[359]=	88.05907108	,
		[360]=	88.18163074	,
		[361]=	88.30402029	,
		[362]=	88.42624045	,
		[363]=	88.54829191	,
		[364]=	88.67017537	,
		[365]=	88.79189152	,
		[366]=	88.91344105	,
		[367]=	89.03482465	,
		[368]=	89.15604298	,
		[369]=	89.27709673	,
		[370]=	89.39798655	,
		[371]=	89.51871313	,
		[372]=	89.63927711	,
		[373]=	89.75967914	,
		[374]=	89.87991989	,
		[375]=	90	,
		[376]=	90.11992011	,
		[377]=	90.23968085	,
		[378]=	90.35928287	,
		[379]=	90.47872678	,
		[380]=	90.59801322	,
		[381]=	90.71714281	,
		[382]=	90.83611617	,
		[383]=	90.9549339	,
		[384]=	91.07359661	,
		[385]=	91.19210492	,
		[386]=	91.31045942	,
		[387]=	91.42866071	,
		[388]=	91.54670939	,
		[389]=	91.66460604	,
		[390]=	91.78235124	,
		[391]=	91.89994559	,
		[392]=	92.01738966	,
		[393]=	92.13468402	,
		[394]=	92.25182925	,
		[395]=	92.36882591	,
		[396]=	92.48567457	,
		[397]=	92.60237578	,
		[398]=	92.71893011	,
		[399]=	92.8353381	,
		[400]=	92.95160031	,
		[401]=	93.06771728	,
		[402]=	93.18368956	,
		[403]=	93.29951768	,
		[404]=	93.41520219	,
		[405]=	93.53074361	,
		[406]=	93.64614247	,
		[407]=	93.76139931	,
		[408]=	93.87651463	,
		[409]=	93.99148898	,
		[410]=	94.10632285	,
		[411]=	94.22101676	,
		[412]=	94.33557123	,
		[413]=	94.44998677	,
		[414]=	94.56426386	,
		[415]=	94.67840303	,
		[416]=	94.79240476	,
		[417]=	94.90626955	,
		[418]=	95.0199979	,
		[419]=	95.13359028	,
		[420]=	95.2470472	,
		[421]=	95.36036913	,
		[422]=	95.47355655	,
		[423]=	95.58660994	,
		[424]=	95.69952978	,
		[425]=	95.81231654	,
		[426]=	95.92497068	,
		[427]=	96.03749268	,
		[428]=	96.149883	,
		[429]=	96.26214209	,
		[430]=	96.37427043	,
		[431]=	96.48626845	,
		[432]=	96.59813663	,
		[433]=	96.7098754	,
		[434]=	96.82148522	,
		[435]=	96.93296653	,
		[436]=	97.04431977	,
		[437]=	97.15554539	,
		[438]=	97.26664382	,
		[439]=	97.3776155	,
		[440]=	97.48846086	,
		[441]=	97.59918032	,
		[442]=	97.70977433	,
		[443]=	97.8202433	,
		[444]=	97.93058766	,
		[445]=	98.04080783	,
		[446]=	98.15090422	,
		[447]=	98.26087726	,
		[448]=	98.37072735	,
		[449]=	98.48045491	,
		[450]=	98.59006035	,
		[451]=	98.69954407	,
		[452]=	98.80890648	,
		[453]=	98.91814798	,
		[454]=	99.02726897	,
		[455]=	99.13626985	,
		[456]=	99.24515102	,
		[457]=	99.35391286	,
		[458]=	99.46255577	,
		[459]=	99.57108014	,
		[460]=	99.67948636	,
		[461]=	99.7877748	,
		[462]=	99.89594586	,
		[463]=	100.0039999	,
		[464]=	100.1119374	,
		[465]=	100.2197585	,
		[466]=	100.3274638	,
		[467]=	100.4350536	,
		[468]=	100.5425283	,
		[469]=	100.6498882	,
		[470]=	100.7571337	,
		[471]=	100.8642652	,
		[472]=	100.971283	,
		[473]=	101.0781876	,
		[474]=	101.1849791	,
		[475]=	101.2916581	,
		[476]=	101.3982248	,
		[477]=	101.5046797	,
		[478]=	101.611023	,
		[479]=	101.7172552	,
		[480]=	101.8233765	,
		[481]=	101.9293873	,
		[482]=	102.035288	,
		[483]=	102.1410789	,
		[484]=	102.2467603	,
		[485]=	102.3523327	,
		[486]=	102.4577962	,
		[487]=	102.5631513	,
		[488]=	102.6683983	,
		[489]=	102.7735375	,
		[490]=	102.8785692	,
		[491]=	102.9834938	,
		[492]=	103.0883117	,
		[493]=	103.193023	,
		[494]=	103.2976282	,
		[495]=	103.4021276	,
		[496]=	103.5065215	,
		[497]=	103.6108102	,
		[498]=	103.7149941	,
		[499]=	103.8190734	,
		[500]=	103.9230485	,
		[501]=	104.0269196	,
		[502]=	104.1306871	,
		[503]=	104.2343513	,
		[504]=	104.3379126	,
		[505]=	104.4413711	,
		[506]=	104.5447273	,
		[507]=	104.6479813	,
		[508]=	104.7511336	,
		[509]=	104.8541845	,
		[510]=	104.9571341	,
		[511]=	105.0599829	,
		[512]=	105.162731	,
		[513]=	105.2653789	,
		[514]=	105.3679268	,
		[515]=	105.470375	,
		[516]=	105.5727238	,
		[517]=	105.6749734	,
		[518]=	105.7771242	,
		[519]=	105.8791764	,
		[520]=	105.9811304	,
		[521]=	106.0829864	,
		[522]=	106.1847447	,
		[523]=	106.2864055	,
		[524]=	106.3879692	,
		[525]=	106.4894361	,
		[526]=	106.5908064	,
		[527]=	106.6920803	,
		[528]=	106.7932582	,
		[529]=	106.8943404	,
		[530]=	106.995327	,
		[531]=	107.0962184	,
		[532]=	107.1970149	,
		[533]=	107.2977167	,
		[534]=	107.398324	,
		[535]=	107.4988372	,
		[536]=	107.5992565	,
		[537]=	107.6995822	,
		[538]=	107.7998145	,
		[539]=	107.8999537	,
		[540]=	108	,
		[541]=	108.0999537	,
		[542]=	108.1998152	,
		[543]=	108.2995845	,
		[544]=	108.399262	,
		[545]=	108.4988479	,
		[546]=	108.5983425	,
		[547]=	108.6977461	,
		[548]=	108.7970588	,
		[549]=	108.8962809	,
		[550]=	108.9954127	,
		[551]=	109.0944545	,
		[552]=	109.1934064	,
		[553]=	109.2922687	,
		[554]=	109.3910417	,
		[555]=	109.4897255	,
		[556]=	109.5883205	,
		[557]=	109.6868269	,
		[558]=	109.7852449	,
		[559]=	109.8835748	,
		[560]=	109.9818167	,
		[561]=	110.0799709	,
		[562]=	110.1780377	,
		[563]=	110.2760173	,
		[564]=	110.37391	,
		[565]=	110.4717158	,
		[566]=	110.5694352	,
		[567]=	110.6670683	,
		[568]=	110.7646153	,
		[569]=	110.8620765	,
		[570]=	110.9594521	,
		[571]=	111.0567423	,
		[572]=	111.1539473	,
		[573]=	111.2510674	,
		[574]=	111.3481028	,
		[575]=	111.4450537	,
		[576]=	111.5419204	,
		[577]=	111.638703	,
		[578]=	111.7354017	,
		[579]=	111.8320169	,
		[580]=	111.9285486	,
		[581]=	112.0249972	,
		[582]=	112.1213628	,
		[583]=	112.2176457	,
		[584]=	112.313846	,
		[585]=	112.409964	,
		[586]=	112.5059998	,
		[587]=	112.6019538	,
		[588]=	112.6978261	,
		[589]=	112.7936168	,
		[590]=	112.8893263	,
		[591]=	112.9849548	,
		[592]=	113.0805023	,
		[593]=	113.1759692	,
		[594]=	113.2713556	,
		[595]=	113.3666618	,
		[596]=	113.4618879	,
		[597]=	113.5570341	,
		[598]=	113.6521007	,
		[599]=	113.7470879	,
		[600]=	113.8419958	,
		[601]=	113.9368246	,
		[602]=	114.0315746	,
		[603]=	114.1262459	,
		[604]=	114.2208387	,
		[605]=	114.3153533	,
		[606]=	114.4097898	,
		[607]=	114.5041484	,
		[608]=	114.5984293	,
		[609]=	114.6926327	,
		[610]=	114.7867588	,
		[611]=	114.8808078	,
		[612]=	114.9747798	,
		[613]=	115.0686751	,
		[614]=	115.1624939	,
		[615]=	115.2562363	,
		[616]=	115.3499025	,
		[617]=	115.4434927	,
		[618]=	115.5370071	,
		[619]=	115.6304458	,
		[620]=	115.7238091	,
		[621]=	115.8170972	,
		[622]=	115.9103102	,
		[623]=	116.0034482	,
		[624]=	116.0965116	,
		[625]=	116.1895004	,
		[626]=	116.2824148	,
		[627]=	116.3752551	,
		[628]=	116.4680214	,
		[629]=	116.5607138	,
		[630]=	116.6533326	,
		[631]=	116.7458779	,
		[632]=	116.8383499	,
		[633]=	116.9307487	,
		[634]=	117.0230746	,
		[635]=	117.1153278	,
		[636]=	117.2075083	,
		[637]=	117.2996164	,
		[638]=	117.3916522	,
		[639]=	117.4836159	,
		[640]=	117.5755077	,
		[641]=	117.6673277	,
		[642]=	117.7590761	,
		[643]=	117.8507531	,
		[644]=	117.9423588	,
		[645]=	118.0338934	,
		[646]=	118.1253571	,
		[647]=	118.2167501	,
		[648]=	118.3080724	,
		[649]=	118.3993243	,
		[650]=	118.4905059	,
		[651]=	118.5816175	,
		[652]=	118.672659	,
		[653]=	118.7636308	,
		[654]=	118.8545329	,
		[655]=	118.9453656	,
		[656]=	119.036129	,
		[657]=	119.1268232	,
		[658]=	119.2174484	,
		[659]=	119.3080048	,
		[660]=	119.3984925	,
		[661]=	119.4889116	,
		[662]=	119.5792624	,
		[663]=	119.669545	,
		[664]=	119.7597595	,
		[665]=	119.8499061	,
		[666]=	119.939985	,
		[667]=	120.0299963	,
		[668]=	120.1199401	,
		[669]=	120.2098166	,
		[670]=	120.2996259	,
		[671]=	120.3893683	,
		[672]=	120.4790438	,
		[673]=	120.5686526	,
		[674]=	120.6581949	,
		[675]=	120.7476708	,
		[676]=	120.8370804	,
		[677]=	120.9264239	,
		[678]=	121.0157015	,
		[679]=	121.1049132	,
		[680]=	121.1940593	,
		[681]=	121.2831398	,
		[682]=	121.372155	,
		[683]=	121.4611049	,
		[684]=	121.5499897	,
		[685]=	121.6388096	,
		[686]=	121.7275647	,
		[687]=	121.8162551	,
		[688]=	121.904881	,
		[689]=	121.9934424	,
		[690]=	122.0819397	,
		[691]=	122.1703728	,
		[692]=	122.258742	,
		[693]=	122.3470474	,
		[694]=	122.435289	,
		[695]=	122.5234671	,
		[696]=	122.6115818	,
		[697]=	122.6996333	,
		[698]=	122.7876215	,
		[699]=	122.8755468	,
		[700]=	122.9634092	,
		[701]=	123.0512089	,
		[702]=	123.1389459	,
		[703]=	123.2266205	,
		[704]=	123.3142328	,
		[705]=	123.4017828	,
		[706]=	123.4892708	,
		[707]=	123.5766968	,
		[708]=	123.6640611	,
		[709]=	123.7513636	,
		[710]=	123.8386046	,
		[711]=	123.9257842	,
		[712]=	124.0129026	,
		[713]=	124.0999597	,
		[714]=	124.1869558	,
		[715]=	124.2738911	,
		[716]=	124.3607655	,
		[717]=	124.4475793	,
		[718]=	124.5343326	,
		[719]=	124.6210255	,
		[720]=	124.7076581	,
		[721]=	124.7942306	,
		[722]=	124.8807431	,
		[723]=	124.9671957	,
		[724]=	125.0535885	,
		[725]=	125.1399217	,
		[726]=	125.2261953	,
		[727]=	125.3124096	,
		[728]=	125.3985646	,
		[729]=	125.4846604	,
		[730]=	125.5706972	,
		[731]=	125.6566751	,
		[732]=	125.7425942	,
		[733]=	125.8284547	,
		[734]=	125.9142565	,
		[735]=	126	,
		[736]=	126.0856852	,
		[737]=	126.1713121	,
		[738]=	126.256881	,
		[739]=	126.3423919	,
		[740]=	126.427845	,
		[741]=	126.5132404	,
		[742]=	126.5985782	,
		[743]=	126.6838585	,
		[744]=	126.7690814	,
		[745]=	126.8542471	,
		[746]=	126.9393556	,
		[747]=	127.0244071	,
		[748]=	127.1094017	,
		[749]=	127.1943395	,
		[750]=	127.2792206	,
		[751]=	127.3640452	,
		[752]=	127.4488133	,
		[753]=	127.533525	,
		[754]=	127.6181805	,
		[755]=	127.7027799	,
		[756]=	127.7873233	,
		[757]=	127.8718108	,
		[758]=	127.9562425	,
		[759]=	128.0406186	,
		[760]=	128.124939	,
		[761]=	128.209204	,
		[762]=	128.2934137	,
		[763]=	128.3775681	,
		[764]=	128.4616674	,
		[765]=	128.5457117	,
		[766]=	128.6297011	,
		[767]=	128.7136356	,
		[768]=	128.7975155	,
		[769]=	128.8813408	,
		[770]=	128.9651116	,
		[771]=	129.048828	,
		[772]=	129.1324901	,
		[773]=	129.2160981	,
		[774]=	129.299652	,
		[775]=	129.3831519	,
		[776]=	129.466598	,
		[777]=	129.5499904	,
		[778]=	129.633329	,
		[779]=	129.7166142	,
		[780]=	129.7998459	,
		[781]=	129.8830243	,
		[782]=	129.9661494	,
		[783]=	130.0492215	,
		[784]=	130.1322404	,
		[785]=	130.2152065	,
		[786]=	130.2981197	,
		[787]=	130.3809802	,
		[788]=	130.4637881	,
		[789]=	130.5465434	,
		[790]=	130.6292463	,
		[791]=	130.7118969	,
		[792]=	130.7944953	,
		[793]=	130.8770415	,
		[794]=	130.9595357	,
		[795]=	131.041978	,
		[796]=	131.1243684	,
		[797]=	131.2067071	,
		[798]=	131.2889942	,
		[799]=	131.3712297	,
		[800]=	131.4534138	,
		[801]=	131.5355465	,
		[802]=	131.617628	,
		[803]=	131.6996583	,
		[804]=	131.7816376	,
		[805]=	131.8635659	,
		[806]=	131.9454433	,
		[807]=	132.0272699	,
		[808]=	132.1090459	,
		[809]=	132.1907712	,
		[810]=	132.2724461	,
		[811]=	132.3540706	,
		[812]=	132.4356447	,
		[813]=	132.5171687	,
		[814]=	132.5986425	,
		[815]=	132.6800663	,
		[816]=	132.7614402	,
		[817]=	132.8427642	,
		[818]=	132.9240385	,
		[819]=	133.0052631	,
		[820]=	133.0864381	,
		[821]=	133.1675636	,
		[822]=	133.2486398	,
		[823]=	133.3296666	,
		[824]=	133.4106443	,
		[825]=	133.4915728	,
		[826]=	133.5724522	,
		[827]=	133.6532828	,
		[828]=	133.7340645	,
		[829]=	133.8147974	,
		[830]=	133.8954816	,
		[831]=	133.9761173	,
		[832]=	134.0567044	,
		[833]=	134.1372432	,
		[834]=	134.2177336	,
		[835]=	134.2981757	,
		[836]=	134.3785697	,
		[837]=	134.4589157	,
		[838]=	134.5392136	,
		[839]=	134.6194637	,
		[840]=	134.6996659	,
		[841]=	134.7798204	,
		[842]=	134.8599273	,
		[843]=	134.9399867	,
		[844]=	135.0199985	,
		[845]=	135.099963	,
		[846]=	135.1798802	,
		[847]=	135.2597501	,
		[848]=	135.3395729	,
		[849]=	135.4193487	,
		[850]=	135.4990775	,
		[851]=	135.5787594	,
		[852]=	135.6583945	,
		[853]=	135.7379829	,
		[854]=	135.8175246	,
		[855]=	135.8970198	,
		[856]=	135.9764686	,
		[857]=	136.0558709	,
		[858]=	136.1352269	,
		[859]=	136.2145367	,
		[860]=	136.2938003	,
		[861]=	136.3730179	,
		[862]=	136.4521894	,
		[863]=	136.5313151	,
		[864]=	136.6103949	,
		[865]=	136.689429	,
		[866]=	136.7684174	,
		[867]=	136.8473602	,
		[868]=	136.9262575	,
		[869]=	137.0051094	,
		[870]=	137.0839159	,
		[871]=	137.1626771	,
		[872]=	137.2413932	,
		[873]=	137.3200641	,
		[874]=	137.39869	,
		[875]=	137.4772708	,
		[876]=	137.5558069	,
		[877]=	137.6342981	,
		[878]=	137.7127445	,
		[879]=	137.7911463	,
		[880]=	137.8695035	,
		[881]=	137.9478162	,
		[882]=	138.0260845	,
		[883]=	138.1043084	,
		[884]=	138.182488	,
		[885]=	138.2606235	,
		[886]=	138.3387148	,
		[887]=	138.416762	,
		[888]=	138.4947652	,
		[889]=	138.5727246	,
		[890]=	138.6506401	,
		[891]=	138.7285118	,
		[892]=	138.8063399	,
		[893]=	138.8841244	,
		[894]=	138.9618653	,
		[895]=	139.0395627	,
		[896]=	139.1172168	,
		[897]=	139.1948275	,
		[898]=	139.272395	,
		[899]=	139.3499193	,
		[900]=	139.4274005	,
		[901]=	139.5048386	,
		[902]=	139.5822338	,
		[903]=	139.6595861	,
		[904]=	139.7368956	,
		[905]=	139.8141624	,
		[906]=	139.8913864	,
		[907]=	139.9685679	,
		[908]=	140.0457068	,
		[909]=	140.1228033	,
		[910]=	140.1998573	,
		[911]=	140.2768691	,
		[912]=	140.3538386	,
		[913]=	140.4307659	,
		[914]=	140.507651	,
		[915]=	140.5844942	,
		[916]=	140.6612953	,
		[917]=	140.7380546	,
		[918]=	140.814772	,
		[919]=	140.8914476	,
		[920]=	140.9680815	,
		[921]=	141.0446738	,
		[922]=	141.1212245	,
		[923]=	141.1977337	,
		[924]=	141.2742015	,
		[925]=	141.3506279	,
		[926]=	141.427013	,
		[927]=	141.5033569	,
		[928]=	141.5796596	,
		[929]=	141.6559212	,
		[930]=	141.7321417	,
		[931]=	141.8083213	,
		[932]=	141.88446	,
		[933]=	141.9605579	,
		[934]=	142.036615	,
		[935]=	142.1126314	,
		[936]=	142.1886071	,
		[937]=	142.2645423	,
		[938]=	142.340437	,
		[939]=	142.4162912	,
		[940]=	142.492105	,
		[941]=	142.5678786	,
		[942]=	142.6436118	,
		[943]=	142.7193049	,
		[944]=	142.7949579	,
		[945]=	142.8705708	,
		[946]=	142.9461437	,
		[947]=	143.0216767	,
		[948]=	143.0971698	,
		[949]=	143.1726231	,
		[950]=	143.2480366	,
		[951]=	143.3234105	,
		[952]=	143.3987448	,
		[953]=	143.4740395	,
		[954]=	143.5492947	,
		[955]=	143.6245104	,
		[956]=	143.6996868	,
		[957]=	143.7748239	,
		[958]=	143.8499218	,
		[959]=	143.9249805	,
		[960]=	144	,
		[961]=	144.0749805	,
		[962]=	144.149922	,
		[963]=	144.2248245	,
		[964]=	144.2996881	,
		[965]=	144.374513	,
		[966]=	144.4492991	,
		[967]=	144.5240464	,
		[968]=	144.5987552	,
		[969]=	144.6734253	,
		[970]=	144.748057	,
		[971]=	144.8226502	,
		[972]=	144.8972049	,
		[973]=	144.9717214	,
		[974]=	145.0461995	,
		[975]=	145.1206395	,
		[976]=	145.1950412	,
		[977]=	145.2694049	,
		[978]=	145.3437305	,
		[979]=	145.4180181	,
		[980]=	145.4922678	,
		[981]=	145.5664797	,
		[982]=	145.6406537	,
		[983]=	145.7147899	,
		[984]=	145.7888885	,
		[985]=	145.8629494	,
		[986]=	145.9369727	,
		[987]=	146.0109585	,
		[988]=	146.0849068	,
		[989]=	146.1588177	,
		[990]=	146.2326913	,
		[991]=	146.3065275	,
		[992]=	146.3803265	,
		[993]=	146.4540884	,
		[994]=	146.5278131	,
		[995]=	146.6015007	,
		[996]=	146.6751513	,
		[997]=	146.7487649	,
		[998]=	146.8223416	,
		[999]=	146.8958815	,
		[1000]=	146.9693846	,
	};
	
	local true_idx = ((target_distance - accum_distance) + offset_distance);
	local true_target_distance = offset_distance;

	if (true_idx <= true_target_distance)
	{
		return limit_speed;
	}
	else if (true_idx < 0)
	{
		return brake_pattern_table[0];
	}
	else if (true_idx > 1000)
	{
		return brake_pattern_table[1000];
	}
	else
	{
		true_idx = true_idx - (true_idx % 4);
		return brake_pattern_table[true_idx.tointeger()];
	}
}

function lookup_incoming_pattern(limit_speed, accum_distance, target_distance, offset_distance)
{
	local incoming_pattern_table = 
	{
		[0]=	0	,
		[1]=	0	,
		[2]=	1.292853089	,
		[3]=	2.707139547	,
		[4]=	3.899438185	,
		[5]=	4.949874371	,
		[6]=	5.899541275	,
		[7]=	6.772850122	,
		[8]=	7.585706178	,
		[9]=	8.349157277	,
		[10]=	9.071247279	,
		[11]=	9.758048651	,
		[12]=	10.41427909	,
		[13]=	11.04369035	,
		[14]=	11.64932431	,
		[15]=	12.23368794	,
		[16]=	12.79887637	,
		[17]=	13.34666182	,
		[18]=	13.87855927	,
		[19]=	14.39587585	,
		[20]=	14.89974874	,
		[21]=	15.39117456	,
		[22]=	15.87103256	,
		[23]=	16.34010309	,
		[24]=	16.79908255	,
		[25]=	17.24859546	,
		[26]=	17.68920448	,
		[27]=	18.12141864	,
		[28]=	18.54570024	,
		[29]=	18.96247066	,
		[30]=	19.37211521	,
		[31]=	19.77498739	,
		[32]=	20.17141236	,
		[33]=	20.56169008	,
		[34]=	20.94609797	,
		[35]=	21.32489316	,
		[36]=	21.69831455	,
		[37]=	22.06658456	,
		[38]=	22.42991068	,
		[39]=	22.78848682	,
		[40]=	23.14249456	,
		[41]=	23.49210417	,
		[42]=	23.83747562	,
		[43]=	24.1787594	,
		[44]=	24.5160973	,
		[45]=	24.84962311	,
		[46]=	25.17946322	,
		[47]=	25.50573717	,
		[48]=	25.82855819	,
		[49]=	26.14803365	,
		[50]=	26.46426545	,
		[51]=	26.77735042	,
		[52]=	27.0873807	,
		[53]=	27.39444397	,
		[54]=	27.69862382	,
		[55]=	28	,
		[56]=	28.29864862	,
		[57]=	28.59464243	,
		[58]=	28.88805099	,
		[59]=	29.17894088	,
		[60]=	29.46737588	,
		[61]=	29.7534171	,
		[62]=	30.03712317	,
		[63]=	30.31855037	,
		[64]=	30.59775274	,
		[65]=	30.87478223	,
		[66]=	31.1496888	,
		[67]=	31.42252051	,
		[68]=	31.69332364	,
		[69]=	31.9621428	,
		[70]=	32.22902094	,
		[71]=	32.49399952	,
		[72]=	32.75711853	,
		[73]=	33.01841659	,
		[74]=	33.27793098	,
		[75]=	33.53569774	,
		[76]=	33.7917517	,
		[77]=	34.04612657	,
		[78]=	34.29885495	,
		[79]=	34.54996839	,
		[80]=	34.79949748	,
		[81]=	35.04747183	,
		[82]=	35.29392014	,
		[83]=	35.53887024	,
		[84]=	35.78234912	,
		[85]=	36.02438299	,
		[86]=	36.26499727	,
		[87]=	36.50421665	,
		[88]=	36.74206511	,
		[89]=	36.97856596	,
		[90]=	37.21374184	,
		[91]=	37.44761477	,
		[92]=	37.68020619	,
		[93]=	37.91153691	,
		[94]=	38.14162723	,
		[95]=	38.37049688	,
		[96]=	38.5981651	,
		[97]=	38.8246506	,
		[98]=	39.04997162	,
		[99]=	39.27414595	,
		[100]=	39.49719092	,
		[101]=	39.71912343	,
		[102]=	39.93995995	,
		[103]=	40.15971656	,
		[104]=	40.37840896	,
		[105]=	40.59605246	,
		[106]=	40.81266201	,
		[107]=	41.02825219	,
		[108]=	41.24283728	,
		[109]=	41.4564312	,
		[110]=	41.66904756	,
		[111]=	41.88069965	,
		[112]=	42.09140049	,
		[113]=	42.30116278	,
		[114]=	42.50999895	,
		[115]=	42.71792116	,
		[116]=	42.92494131	,
		[117]=	43.13107105	,
		[118]=	43.33632175	,
		[119]=	43.54070457	,
		[120]=	43.74423043	,
		[121]=	43.94691001	,
		[122]=	44.1487538	,
		[123]=	44.34977204	,
		[124]=	44.54997477	,
		[125]=	44.74937186	,
		[126]=	44.94797293	,
		[127]=	45.14578746	,
		[128]=	45.34282471	,
		[129]=	45.53909378	,
		[130]=	45.73460358	,
		[131]=	45.92936285	,
		[132]=	46.12338017	,
		[133]=	46.31666396	,
		[134]=	46.50922248	,
		[135]=	46.70106382	,
		[136]=	46.89219595	,
		[137]=	47.08262666	,
		[138]=	47.27236364	,
		[139]=	47.46141439	,
		[140]=	47.64978632	,
		[141]=	47.83748669	,
		[142]=	48.02452263	,
		[143]=	48.21090114	,
		[144]=	48.39662911	,
		[145]=	48.5817133	,
		[146]=	48.76616036	,
		[147]=	48.94997683	,
		[148]=	49.13316913	,
		[149]=	49.31574357	,
		[150]=	49.49770637	,
		[151]=	49.67906363	,
		[152]=	49.85982136	,
		[153]=	50.03998547	,
		[154]=	50.21956175	,
		[155]=	50.39855594	,
		[156]=	50.57697365	,
		[157]=	50.75482042	,
		[158]=	50.93210169	,
		[159]=	51.10882284	,
		[160]=	51.28498912	,
		[161]=	51.46060574	,
		[162]=	51.6356778	,
		[163]=	51.81021035	,
		[164]=	51.98420834	,
		[165]=	52.15767665	,
		[166]=	52.33062009	,
		[167]=	52.5030434	,
		[168]=	52.67495124	,
		[169]=	52.8463482	,
		[170]=	53.01723882	,
		[171]=	53.18762755	,
		[172]=	53.3575188	,
		[173]=	53.52691688	,
		[174]=	53.69582609	,
		[175]=	53.86425061	,
		[176]=	54.03219461	,
		[177]=	54.19966216	,
		[178]=	54.36665731	,
		[179]=	54.53318402	,
		[180]=	54.69924623	,
		[181]=	54.86484778	,
		[182]=	55.0299925	,
		[183]=	55.19468415	,
		[184]=	55.35892643	,
		[185]=	55.52272301	,
		[186]=	55.68607748	,
		[187]=	55.84899342	,
		[188]=	56.01147433	,
		[189]=	56.17352368	,
		[190]=	56.3351449	,
		[191]=	56.49634135	,
		[192]=	56.65711638	,
		[193]=	56.81747326	,
		[194]=	56.97741524	,
		[195]=	57.13694553	,
		[196]=	57.29606729	,
		[197]=	57.45478364	,
		[198]=	57.61309767	,
		[199]=	57.77101242	,
		[200]=	57.92853089	,
		[201]=	58.08565606	,
		[202]=	58.24239085	,
		[203]=	58.39873816	,
		[204]=	58.55470085	,
		[205]=	58.71028174	,
		[206]=	58.86548364	,
		[207]=	59.02030928	,
		[208]=	59.17476139	,
		[209]=	59.32884268	,
		[210]=	59.48255578	,
		[211]=	59.63590334	,
		[212]=	59.78888794	,
		[213]=	59.94151215	,
		[214]=	60.0937785	,
		[215]=	60.24568951	,
		[216]=	60.39724765	,
		[217]=	60.54845536	,
		[218]=	60.69931506	,
		[219]=	60.84982916	,
		[220]=	61	,
		[221]=	61.14982993	,
		[222]=	61.29932126	,
		[223]=	61.44847628	,
		[224]=	61.59729724	,
		[225]=	61.74578638	,
		[226]=	61.89394591	,
		[227]=	62.04177802	,
		[228]=	62.18928486	,
		[229]=	62.33646857	,
		[230]=	62.48333128	,
		[231]=	62.62987506	,
		[232]=	62.77610198	,
		[233]=	62.9220141	,
		[234]=	63.06761344	,
		[235]=	63.21290201	,
		[236]=	63.35788177	,
		[237]=	63.5025547	,
		[238]=	63.64692273	,
		[239]=	63.79098778	,
		[240]=	63.93475176	,
		[241]=	64.07821654	,
		[242]=	64.22138398	,
		[243]=	64.36425592	,
		[244]=	64.5068342	,
		[245]=	64.6491206	,
		[246]=	64.79111691	,
		[247]=	64.93282491	,
		[248]=	65.07424634	,
		[249]=	65.21538293	,
		[250]=	65.3562364	,
		[251]=	65.49680844	,
		[252]=	65.63710073	,
		[253]=	65.77711495	,
		[254]=	65.91685272	,
		[255]=	66.05631569	,
		[256]=	66.19550548	,
		[257]=	66.33442367	,
		[258]=	66.47307185	,
		[259]=	66.6114516	,
		[260]=	66.74956446	,
		[261]=	66.88741197	,
		[262]=	67.02499566	,
		[263]=	67.16231704	,
		[264]=	67.29937759	,
		[265]=	67.43617881	,
		[266]=	67.57272215	,
		[267]=	67.70900907	,
		[268]=	67.84504101	,
		[269]=	67.9808194	,
		[270]=	68.11634564	,
		[271]=	68.25162114	,
		[272]=	68.38664729	,
		[273]=	68.52142545	,
		[274]=	68.65595699	,
		[275]=	68.79024326	,
		[276]=	68.92428559	,
		[277]=	69.05808531	,
		[278]=	69.19164373	,
		[279]=	69.32496216	,
		[280]=	69.45804188	,
		[281]=	69.59088416	,
		[282]=	69.72349028	,
		[283]=	69.85586149	,
		[284]=	69.98799904	,
		[285]=	70.11990415	,
		[286]=	70.25157806	,
		[287]=	70.38302196	,
		[288]=	70.51423707	,
		[289]=	70.64522457	,
		[290]=	70.77598564	,
		[291]=	70.90652146	,
		[292]=	71.03683318	,
		[293]=	71.16692195	,
		[294]=	71.29678892	,
		[295]=	71.42643522	,
		[296]=	71.55586196	,
		[297]=	71.68507025	,
		[298]=	71.81406121	,
		[299]=	71.94283592	,
		[300]=	72.07139547	,
		[301]=	72.19974093	,
		[302]=	72.32787337	,
		[303]=	72.45579384	,
		[304]=	72.5835034	,
		[305]=	72.71100308	,
		[306]=	72.83829392	,
		[307]=	72.96537693	,
		[308]=	73.09225314	,
		[309]=	73.21892354	,
		[310]=	73.34538914	,
		[311]=	73.47165093	,
		[312]=	73.59770989	,
		[313]=	73.72356699	,
		[314]=	73.8492232	,
		[315]=	73.97467949	,
		[316]=	74.09993679	,
		[317]=	74.22499606	,
		[318]=	74.34985822	,
		[319]=	74.47452422	,
		[320]=	74.59899497	,
		[321]=	74.72327138	,
		[322]=	74.84735437	,
		[323]=	74.97124483	,
		[324]=	75.09494366	,
		[325]=	75.21845174	,
		[326]=	75.34176996	,
		[327]=	75.46489918	,
		[328]=	75.58784027	,
		[329]=	75.7105941	,
		[330]=	75.83316151	,
		[331]=	75.95554336	,
		[332]=	76.07774047	,
		[333]=	76.19975369	,
		[334]=	76.32158385	,
		[335]=	76.44323176	,
		[336]=	76.56469825	,
		[337]=	76.68598411	,
		[338]=	76.80709016	,
		[339]=	76.92801719	,
		[340]=	77.04876599	,
		[341]=	77.16933735	,
		[342]=	77.28973204	,
		[343]=	77.40995086	,
		[344]=	77.52999455	,
		[345]=	77.64986388	,
		[346]=	77.76955962	,
		[347]=	77.88908251	,
		[348]=	78.00843331	,
		[349]=	78.12761274	,
		[350]=	78.24662155	,
		[351]=	78.36546047	,
		[352]=	78.48413023	,
		[353]=	78.60263154	,
		[354]=	78.72096512	,
		[355]=	78.83913167	,
		[356]=	78.95713192	,
		[357]=	79.07496655	,
		[358]=	79.19263626	,
		[359]=	79.31014174	,
		[360]=	79.42748368	,
		[361]=	79.54466275	,
		[362]=	79.66167964	,
		[363]=	79.77853502	,
		[364]=	79.89522955	,
		[365]=	80.01176389	,
		[366]=	80.12813871	,
		[367]=	80.24435465	,
		[368]=	80.36041237	,
		[369]=	80.47631251	,
		[370]=	80.59205571	,
		[371]=	80.7076426	,
		[372]=	80.82307382	,
		[373]=	80.93835	,
		[374]=	81.05347175	,
		[375]=	81.1684397	,
		[376]=	81.28325446	,
		[377]=	81.39791664	,
		[378]=	81.51242685	,
		[379]=	81.6267857	,
		[380]=	81.74099377	,
		[381]=	81.85505167	,
		[382]=	81.96895998	,
		[383]=	82.0827193	,
		[384]=	82.1963302	,
		[385]=	82.30979327	,
		[386]=	82.42310907	,
		[387]=	82.53627819	,
		[388]=	82.6493012	,
		[389]=	82.76217864	,
		[390]=	82.8749111	,
		[391]=	82.98749911	,
		[392]=	83.09994325	,
		[393]=	83.21224405	,
		[394]=	83.32440206	,
		[395]=	83.43641784	,
		[396]=	83.54829191	,
		[397]=	83.66002481	,
		[398]=	83.77161709	,
		[399]=	83.88306925	,
		[400]=	83.99438185	,
		[401]=	84.10555538	,
		[402]=	84.21659039	,
		[403]=	84.32748737	,
		[404]=	84.43824685	,
		[405]=	84.54886934	,
		[406]=	84.65935534	,
		[407]=	84.76970536	,
		[408]=	84.87991989	,
		[409]=	84.98999944	,
		[410]=	85.09994451	,
		[411]=	85.20975557	,
		[412]=	85.31943312	,
		[413]=	85.42897766	,
		[414]=	85.53838965	,
		[415]=	85.64766958	,
		[416]=	85.75681793	,
		[417]=	85.86583516	,
		[418]=	85.97472176	,
		[419]=	86.08347819	,
		[420]=	86.19210492	,
		[421]=	86.30060241	,
		[422]=	86.40897111	,
		[423]=	86.5172115	,
		[424]=	86.62532401	,
		[425]=	86.73330911	,
		[426]=	86.84116724	,
		[427]=	86.94889885	,
		[428]=	87.05650439	,
		[429]=	87.16398429	,
		[430]=	87.271339	,
		[431]=	87.37856894	,
		[432]=	87.48567457	,
		[433]=	87.5926563	,
		[434]=	87.69951456	,
		[435]=	87.80624979	,
		[436]=	87.9128624	,
		[437]=	88.01935283	,
		[438]=	88.12572147	,
		[439]=	88.23196877	,
		[440]=	88.33809512	,
		[441]=	88.44410094	,
		[442]=	88.54998664	,
		[443]=	88.65575263	,
		[444]=	88.76139931	,
		[445]=	88.86692708	,
		[446]=	88.97233635	,
		[447]=	89.07762752	,
		[448]=	89.18280098	,
		[449]=	89.28785712	,
		[450]=	89.39279634	,
		[451]=	89.49761902	,
		[452]=	89.60232555	,
		[453]=	89.70691633	,
		[454]=	89.81139172	,
		[455]=	89.91575212	,
		[456]=	90.0199979	,
		[457]=	90.12412943	,
		[458]=	90.2281471	,
		[459]=	90.33205127	,
		[460]=	90.43584232	,
		[461]=	90.53952062	,
		[462]=	90.64308652	,
		[463]=	90.74654041	,
		[464]=	90.84988263	,
		[465]=	90.95311355	,
		[466]=	91.05623353	,
		[467]=	91.15924293	,
		[468]=	91.26214209	,
		[469]=	91.36493138	,
		[470]=	91.46761114	,
		[471]=	91.57018173	,
		[472]=	91.67264349	,
		[473]=	91.77499677	,
		[474]=	91.87724191	,
		[475]=	91.97937925	,
		[476]=	92.08140914	,
		[477]=	92.1833319	,
		[478]=	92.28514789	,
		[479]=	92.38685743	,
		[480]=	92.48846086	,
		[481]=	92.5899585	,
		[482]=	92.69135069	,
		[483]=	92.79263776	,
		[484]=	92.89382003	,
		[485]=	92.99489783	,
		[486]=	93.09587147	,
		[487]=	93.19674129	,
		[488]=	93.2975076	,
		[489]=	93.39817071	,
		[490]=	93.49873096	,
		[491]=	93.59918864	,
		[492]=	93.69954407	,
		[493]=	93.79979757	,
		[494]=	93.89994944	,
		[495]=	94	,
		[496]=	94.09994955	,
		[497]=	94.19979839	,
		[498]=	94.29954683	,
		[499]=	94.39919517	,
		[500]=	94.49874371	,
		[501]=	94.59819275	,
		[502]=	94.6975426	,
		[503]=	94.79679354	,
		[504]=	94.89594586	,
		[505]=	94.99499987	,
		[506]=	95.09395586	,
		[507]=	95.19281411	,
		[508]=	95.29157492	,
		[509]=	95.39023857	,
		[510]=	95.48880535	,
		[511]=	95.58727554	,
		[512]=	95.68564942	,
		[513]=	95.78392729	,
		[514]=	95.88210941	,
		[515]=	95.98019608	,
		[516]=	96.07818756	,
		[517]=	96.17608413	,
		[518]=	96.27388607	,
		[519]=	96.37159365	,
		[520]=	96.46920715	,
		[521]=	96.56672684	,
		[522]=	96.66415297	,
		[523]=	96.76148584	,
		[524]=	96.85872569	,
		[525]=	96.95587281	,
		[526]=	97.05292744	,
		[527]=	97.14988987	,
		[528]=	97.24676034	,
		[529]=	97.34353912	,
		[530]=	97.44022647	,
		[531]=	97.53682265	,
		[532]=	97.63332792	,
		[533]=	97.72974253	,
		[534]=	97.82606673	,
		[535]=	97.92230079	,
		[536]=	98.01844495	,
		[537]=	98.11449947	,
		[538]=	98.21046459	,
		[539]=	98.30634056	,
		[540]=	98.40212764	,
		[541]=	98.49782606	,
		[542]=	98.59343609	,
		[543]=	98.68895795	,
		[544]=	98.78439189	,
		[545]=	98.87973816	,
		[546]=	98.97499699	,
		[547]=	99.07016864	,
		[548]=	99.16525332	,
		[549]=	99.26025129	,
		[550]=	99.35516279	,
		[551]=	99.44998803	,
		[552]=	99.54472727	,
		[553]=	99.63938073	,
		[554]=	99.73394865	,
		[555]=	99.82843126	,
		[556]=	99.92282878	,
		[557]=	100.0171415	,
		[558]=	100.1113695	,
		[559]=	100.2055132	,
		[560]=	100.2995726	,
		[561]=	100.3935482	,
		[562]=	100.48744	,
		[563]=	100.5812483	,
		[564]=	100.6749734	,
		[565]=	100.7686154	,
		[566]=	100.8621745	,
		[567]=	100.9556511	,
		[568]=	101.0490453	,
		[569]=	101.1423572	,
		[570]=	101.2355873	,
		[571]=	101.3287355	,
		[572]=	101.4218023	,
		[573]=	101.5147877	,
		[574]=	101.607692	,
		[575]=	101.7005155	,
		[576]=	101.7932582	,
		[577]=	101.8859205	,
		[578]=	101.9785025	,
		[579]=	102.0710045	,
		[580]=	102.1634266	,
		[581]=	102.2557691	,
		[582]=	102.3480321	,
		[583]=	102.4402159	,
		[584]=	102.5323207	,
		[585]=	102.6243467	,
		[586]=	102.716294	,
		[587]=	102.808163	,
		[588]=	102.8999537	,
		[589]=	102.9916663	,
		[590]=	103.0833012	,
		[591]=	103.1748584	,
		[592]=	103.2663383	,
		[593]=	103.3577408	,
		[594]=	103.4490664	,
		[595]=	103.5403151	,
		[596]=	103.6314871	,
		[597]=	103.7225828	,
		[598]=	103.8136021	,
		[599]=	103.9045454	,
		[600]=	103.9954127	,
		[601]=	104.0862044	,
		[602]=	104.1769206	,
		[603]=	104.2675615	,
		[604]=	104.3581273	,
		[605]=	104.4486181	,
		[606]=	104.5390341	,
		[607]=	104.6293756	,
		[608]=	104.7196427	,
		[609]=	104.8098356	,
		[610]=	104.8999545	,
		[611]=	104.9899995	,
		[612]=	105.0799709	,
		[613]=	105.1698688	,
		[614]=	105.2596935	,
		[615]=	105.3494449	,
		[616]=	105.4391235	,
		[617]=	105.5287293	,
		[618]=	105.6182625	,
		[619]=	105.7077233	,
		[620]=	105.7971119	,
		[621]=	105.8864284	,
		[622]=	105.975673	,
		[623]=	106.0648459	,
		[624]=	106.1539473	,
		[625]=	106.2429773	,
		[626]=	106.3319361	,
		[627]=	106.4208239	,
		[628]=	106.5096408	,
		[629]=	106.5983871	,
		[630]=	106.6870628	,
		[631]=	106.7756682	,
		[632]=	106.8642034	,
		[633]=	106.9526686	,
		[634]=	107.0410639	,
		[635]=	107.1293895	,
		[636]=	107.2176457	,
		[637]=	107.3058324	,
		[638]=	107.39395	,
		[639]=	107.4819986	,
		[640]=	107.5699782	,
		[641]=	107.6578892	,
		[642]=	107.7457316	,
		[643]=	107.8335057	,
		[644]=	107.9212115	,
		[645]=	108.0088492	,
		[646]=	108.096419	,
		[647]=	108.1839211	,
		[648]=	108.2713556	,
		[649]=	108.3587226	,
		[650]=	108.4460224	,
		[651]=	108.533255	,
		[652]=	108.6204207	,
		[653]=	108.7075195	,
		[654]=	108.7945517	,
		[655]=	108.8815174	,
		[656]=	108.9684167	,
		[657]=	109.0552498	,
		[658]=	109.1420168	,
		[659]=	109.2287179	,
		[660]=	109.3153533	,
		[661]=	109.4019231	,
		[662]=	109.4884274	,
		[663]=	109.5748664	,
		[664]=	109.6612402	,
		[665]=	109.747549	,
		[666]=	109.8337929	,
		[667]=	109.9199722	,
		[668]=	110.0060868	,
		[669]=	110.092137	,
		[670]=	110.1781229	,
		[671]=	110.2640447	,
		[672]=	110.3499025	,
		[673]=	110.4356964	,
		[674]=	110.5214266	,
		[675]=	110.6070932	,
		[676]=	110.6926964	,
		[677]=	110.7782363	,
		[678]=	110.863713	,
		[679]=	110.9491268	,
		[680]=	111.0344776	,
		[681]=	111.1197658	,
		[682]=	111.2049913	,
		[683]=	111.2901544	,
		[684]=	111.3752551	,
		[685]=	111.4602937	,
		[686]=	111.5452702	,
		[687]=	111.6301848	,
		[688]=	111.7150376	,
		[689]=	111.7998288	,
		[690]=	111.8845584	,
		[691]=	111.9692267	,
		[692]=	112.0538338	,
		[693]=	112.1383797	,
		[694]=	112.2228647	,
		[695]=	112.3072888	,
		[696]=	112.3916522	,
		[697]=	112.475955	,
		[698]=	112.5601973	,
		[699]=	112.6443794	,
		[700]=	112.7285012	,
		[701]=	112.812563	,
		[702]=	112.8965648	,
		[703]=	112.9805069	,
		[704]=	113.0643892	,
		[705]=	113.148212	,
		[706]=	113.2319754	,
		[707]=	113.3156794	,
		[708]=	113.3993243	,
		[709]=	113.4829102	,
		[710]=	113.5664371	,
		[711]=	113.6499052	,
		[712]=	113.7333146	,
		[713]=	113.8166655	,
		[714]=	113.8999579	,
		[715]=	113.9831921	,
		[716]=	114.066368	,
		[717]=	114.1494859	,
		[718]=	114.2325459	,
		[719]=	114.315548	,
		[720]=	114.3984925	,
		[721]=	114.4813793	,
		[722]=	114.5642087	,
		[723]=	114.6469807	,
		[724]=	114.7296956	,
		[725]=	114.8123533	,
		[726]=	114.894954	,
		[727]=	114.9774979	,
		[728]=	115.059985	,
		[729]=	115.1424155	,
		[730]=	115.2247895	,
		[731]=	115.307107	,
		[732]=	115.3893683	,
		[733]=	115.4715734	,
		[734]=	115.5537225	,
		[735]=	115.6358156	,
		[736]=	115.7178529	,
		[737]=	115.7998344	,
		[738]=	115.8817604	,
		[739]=	115.9636309	,
		[740]=	116.045446	,
		[741]=	116.1272059	,
		[742]=	116.2089106	,
		[743]=	116.2905602	,
		[744]=	116.372155	,
		[745]=	116.4536949	,
		[746]=	116.5351801	,
		[747]=	116.6166107	,
		[748]=	116.6979868	,
		[749]=	116.7793086	,
		[750]=	116.8605761	,
		[751]=	116.9417894	,
		[752]=	117.0229487	,
		[753]=	117.104054	,
		[754]=	117.1851055	,
		[755]=	117.2661032	,
		[756]=	117.3470474	,
		[757]=	117.427938	,
		[758]=	117.5087752	,
		[759]=	117.5895591	,
		[760]=	117.6702898	,
		[761]=	117.7509674	,
		[762]=	117.831592	,
		[763]=	117.9121638	,
		[764]=	117.9926827	,
		[765]=	118.073149	,
		[766]=	118.1535627	,
		[767]=	118.2339239	,
		[768]=	118.3142328	,
		[769]=	118.3944893	,
		[770]=	118.4746938	,
		[771]=	118.5548461	,
		[772]=	118.6349465	,
		[773]=	118.714995	,
		[774]=	118.7949918	,
		[775]=	118.8749369	,
		[776]=	118.9548305	,
		[777]=	119.0346726	,
		[778]=	119.1144633	,
		[779]=	119.1942028	,
		[780]=	119.2738911	,
		[781]=	119.3535283	,
		[782]=	119.4331146	,
		[783]=	119.51265	,
		[784]=	119.5921346	,
		[785]=	119.6715685	,
		[786]=	119.7509519	,
		[787]=	119.8302848	,
		[788]=	119.9095673	,
		[789]=	119.9887995	,
		[790]=	120.0679815	,
		[791]=	120.1471134	,
		[792]=	120.2261953	,
		[793]=	120.3052273	,
		[794]=	120.3842095	,
		[795]=	120.463142	,
		[796]=	120.5420248	,
		[797]=	120.6208581	,
		[798]=	120.699642	,
		[799]=	120.7783765	,
		[800]=	120.8570618	,
		[801]=	120.9356979	,
		[802]=	121.0142849	,
		[803]=	121.092823	,
		[804]=	121.1713121	,
		[805]=	121.2497525	,
		[806]=	121.3281441	,
		[807]=	121.4064872	,
		[808]=	121.4847817	,
		[809]=	121.5630278	,
		[810]=	121.6412255	,
		[811]=	121.719375	,
		[812]=	121.7974763	,
		[813]=	121.8755296	,
		[814]=	121.9535348	,
		[815]=	122.0314922	,
		[816]=	122.1094017	,
		[817]=	122.1872635	,
		[818]=	122.2650777	,
		[819]=	122.3428443	,
		[820]=	122.4205635	,
		[821]=	122.4982353	,
		[822]=	122.5758598	,
		[823]=	122.6534371	,
		[824]=	122.7309673	,
		[825]=	122.8084504	,
		[826]=	122.8858866	,
		[827]=	122.963276	,
		[828]=	123.0406186	,
		[829]=	123.1179144	,
		[830]=	123.1951637	,
		[831]=	123.2723665	,
		[832]=	123.3495228	,
		[833]=	123.4266328	,
		[834]=	123.5036964	,
		[835]=	123.580714	,
		[836]=	123.6576854	,
		[837]=	123.7346107	,
		[838]=	123.8114902	,
		[839]=	123.8883238	,
		[840]=	123.9651116	,
		[841]=	124.0418537	,
		[842]=	124.1185502	,
		[843]=	124.1952011	,
		[844]=	124.2718067	,
		[845]=	124.3483668	,
		[846]=	124.4248817	,
		[847]=	124.5013513	,
		[848]=	124.5777759	,
		[849]=	124.6541554	,
		[850]=	124.7304899	,
		[851]=	124.8067795	,
		[852]=	124.8830243	,
		[853]=	124.9592244	,
		[854]=	125.0353798	,
		[855]=	125.1114907	,
		[856]=	125.187557	,
		[857]=	125.2635789	,
		[858]=	125.3395565	,
		[859]=	125.4154899	,
		[860]=	125.491379	,
		[861]=	125.5672241	,
		[862]=	125.6430251	,
		[863]=	125.7187821	,
		[864]=	125.7944953	,
		[865]=	125.8701647	,
		[866]=	125.9457903	,
		[867]=	126.0213723	,
		[868]=	126.0969107	,
		[869]=	126.1724056	,
		[870]=	126.2478571	,
		[871]=	126.3232653	,
		[872]=	126.3986301	,
		[873]=	126.4739518	,
		[874]=	126.5492303	,
		[875]=	126.6244658	,
		[876]=	126.6996583	,
		[877]=	126.7748079	,
		[878]=	126.8499147	,
		[879]=	126.9249787	,
		[880]=	127	,
		[881]=	127.0749787	,
		[882]=	127.1499149	,
		[883]=	127.2248086	,
		[884]=	127.2996599	,
		[885]=	127.3744688	,
		[886]=	127.4492356	,
		[887]=	127.5239601	,
		[888]=	127.5986425	,
		[889]=	127.6732829	,
		[890]=	127.7478813	,
		[891]=	127.8224379	,
		[892]=	127.8969526	,
		[893]=	127.9714255	,
		[894]=	128.0458568	,
		[895]=	128.1202464	,
		[896]=	128.1945945	,
		[897]=	128.2689011	,
		[898]=	128.3431663	,
		[899]=	128.4173902	,
		[900]=	128.4915728	,
		[901]=	128.5657142	,
		[902]=	128.6398144	,
		[903]=	128.7138736	,
		[904]=	128.7878918	,
		[905]=	128.8618691	,
		[906]=	128.9358055	,
		[907]=	129.0097011	,
		[908]=	129.083556	,
		[909]=	129.1573703	,
		[910]=	129.2311439	,
		[911]=	129.3048771	,
		[912]=	129.3785697	,
		[913]=	129.452222	,
		[914]=	129.525834	,
		[915]=	129.5994056	,
		[916]=	129.6729371	,
		[917]=	129.7464285	,
		[918]=	129.8198798	,
		[919]=	129.8932912	,
		[920]=	129.9666626	,
		[921]=	130.0399941	,
		[922]=	130.1132858	,
		[923]=	130.1865378	,
		[924]=	130.2597501	,
		[925]=	130.3329228	,
		[926]=	130.406056	,
		[927]=	130.4791497	,
		[928]=	130.552204	,
		[929]=	130.6252189	,
		[930]=	130.6981945	,
		[931]=	130.771131	,
		[932]=	130.8440282	,
		[933]=	130.9168864	,
		[934]=	130.9897055	,
		[935]=	131.0624856	,
		[936]=	131.1352269	,
		[937]=	131.2079293	,
		[938]=	131.2805929	,
		[939]=	131.3532178	,
		[940]=	131.425804	,
		[941]=	131.4983516	,
		[942]=	131.5708607	,
		[943]=	131.6433313	,
		[944]=	131.7157635	,
		[945]=	131.7881574	,
		[946]=	131.8605129	,
		[947]=	131.9328302	,
		[948]=	132.0051094	,
		[949]=	132.0773504	,
		[950]=	132.1495534	,
		[951]=	132.2217184	,
		[952]=	132.2938455	,
		[953]=	132.3659346	,
		[954]=	132.437986	,
		[955]=	132.5099996	,
		[956]=	132.5819756	,
		[957]=	132.6539139	,
		[958]=	132.7258146	,
		[959]=	132.7976778	,
		[960]=	132.8695035	,
		[961]=	132.9412919	,
		[962]=	133.0130429	,
		[963]=	133.0847566	,
		[964]=	133.1564331	,
		[965]=	133.2280724	,
		[966]=	133.2996746	,
		[967]=	133.3712398	,
		[968]=	133.442768	,
		[969]=	133.5142592	,
		[970]=	133.5857135	,
		[971]=	133.6571311	,
		[972]=	133.7285118	,
		[973]=	133.7998559	,
		[974]=	133.8711633	,
		[975]=	133.9424341	,
		[976]=	134.0136684	,
		[977]=	134.0848662	,
		[978]=	134.1560275	,
		[979]=	134.2271525	,
		[980]=	134.2982412	,
		[981]=	134.3692936	,
		[982]=	134.4403098	,
		[983]=	134.5112899	,
		[984]=	134.5822338	,
		[985]=	134.6531417	,
		[986]=	134.7240137	,
		[987]=	134.7948497	,
		[988]=	134.8656498	,
		[989]=	134.9364141	,
		[990]=	135.0071427	,
		[991]=	135.0778355	,
		[992]=	135.1484927	,
		[993]=	135.2191142	,
		[994]=	135.2897003	,
		[995]=	135.3602508	,
		[996]=	135.4307659	,
		[997]=	135.5012455	,
		[998]=	135.5716899	,
		[999]=	135.642099	,
		[1000]=	135.7124728	,
	};

	local true_idx = ((target_distance - accum_distance) + offset_distance);
	local true_target_distance = offset_distance;

	if (true_idx <= true_target_distance)
	{
		return limit_speed - 5.0;
	}
	else if (true_idx < 0)
	{
		return incoming_pattern_table[0];
	}
	else if (true_idx > 1000)
	{
		return incoming_pattern_table[1000];
	}
	else
	{
		true_idx = true_idx - (true_idx % 4);	
		return incoming_pattern_table[true_idx.tointeger()];
	}
}

function self_erase(accum_distance, target_distance)
{
	return false;
}

function pattern_type(param)
{
	return 1;
}